In a quiz competition, Tom ranks 12th from the top and 9th from the bottom. How many contestants participated?

Answer: B. 21
Total contestants = 12 + 9 - 1 = 20.