B is 5th from the top and 26th from the bottom in a ranking of students. How many students are there in total?

Answer: B. 31
If B is 5th from the top and 26th from the bottom, then total students = 5 + 26 - 1 = 30.