instruction:
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.
question:
Sentence: 'three computer peripherals laying on a wooden surface'. Reverse all words of length '7' in the given sentence.
answer:
three computer peripherals laying on a wooden ecafrus


question:
Sentence: 'a baseball player at bat and swinging the bat with other players behind him in the dugout'. Reverse all words of length '5' in the given sentence.
answer:
a baseball player at bat and swinging the bat with rehto players behind him in the dugout


question:
Sentence: 'an elephant lifts his trunk and his leg toward a man in a green shirt'. Reverse all words of length '3' in the given sentence.
answer:

an elephant lifts sih trunk dna sih gel toward a nam in a green shirt