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?
A, B, C, D, and E are seated in a straight line. A is to the left of C but to the right of B. D is not at either end. Who is sitting at the extreme right?