Seven athletes took part in the men's 5km final: S, T, U, W, X, Y and Z  The clothes worn by athletes are either red or green, and no athletes reach the finish line at the same time  The known information is as follows: for athletes who arrive at the finish line one after another, their clothes are not all red  Y reached the finish line some time before T and W  Two of the athletes who reached the finish line before Y happened to be dressed in red  S is the sixth athlete to reach the finish line
Z arrives at the finish line at some time before U
X and Y