In this task, you need to reverse all words of a given length in the sentence. The number of letters in a word determine its length. For example, the length of the word "apple" is 5.

Q: Sentence: 'a person wearing a black jacket is standing next to a horse'. Reverse all words of length '8' in the given sentence.

A: a person wearing a black jacket is gnidnats next to a horse
****
Q: Sentence: 'a cat has is sticking its head in the toilet'. Reverse all words of length '8' in the given sentence.

A: a cat has is gnikcits its head in the toilet
****
Q: Sentence: 'multiple motorcycles in a city street with people'. Reverse all words of length '6' in the given sentence.

A:
multiple motorcycles in a city teerts with elpoep
****