Hi Aman2487,Great question! The problem never tells us who is ranked highest. When it says 'there are
5 students between Ana and Borja,' it doesn't mean Ana is above Borja — it just means the gap between them is
5, regardless of order. Same for the other statements.
Let's test the case where Ana IS the highest:If Ana > Borja > Carlos: The gap between Ana and Borja is
5, and Ana and Carlos is
12. That means Borja and Carlos have only
12 -
5 -
1 =
6 students between them. But the problem says MORE than
10 between Borja and Carlos.
So this fails.If Ana > Carlos > Borja: Ana-Carlos gap is
12 and Ana-Borja gap is
5. Since Carlos is between Ana and Borja, Carlos would need to be closer to Ana than Borja is — but
12 >
5 means Carlos is farther away. Contradiction.
This fails too.Now try Ana IN THE MIDDLE:If Borja > Ana > Carlos (or Carlos > Ana > Borja): The
5-gap and
12-gap ADD UP instead of overlapping. Borja-to-Carlos gap =
5 +
1 +
12 =
18 students between them. Check: is
18 more than
10? Yes!
This works.So Ana is actually the MIDDLE-ranked student, and the answer is
18.
Key principle: When a problem says 'between X and Y,' never assume who's higher — you must test all arrangements and let the constraints tell you the correct order.Answer: D