In a race of 40 participants, E is ranked 12th from the top. If F is ranked 8th from the bottom, what is the total number of participants?

Answer: B. 40
If E is 12th from the top and F is 8th from the bottom, then the total number of participants is 12 + 8 - 1 = 40.