In a group of 40 people, if Sarah is ranked 10th from the top and 31st from the bottom, how many people are in the group?

Answer: B. 40
Total number of people = Sarah's top rank + Sarah's bottom rank - 1 = 10 + 31 - 1 = 40.