Five people are sitting in a row: X, Y, Z, W, and V. Y is sitting to the right of X but not next to W. Z is sitting at one end. Who is sitting next to W?
In a group of 40 people, if Tom is 10th from the top and after swapping places with another person, he becomes 15th from the top. What is the rank of the person who swapped with him from the bottom?