If two students, Sam and Tom, swap their positions and Sam is 12th from the top and 18th from the bottom after the swap, what was Tom's initial rank from the top?

Answer: C. 13th
If Sam is now 12th from the top after swapping with Tom, Tom must have been 12th before the swap, making him 13th from the top.