If two students, Sarah and Tom, swap their ranks and Sarah is currently 8th from the top and Tom is 22nd from the bottom, how many students are there in total?

Answer: B. 29
Total students = Sarah's rank from top + Tom's rank from bottom - 1 = 8 + 22 - 1 = 29.