A researcher spoke to 20 people running a marathon in which 1,400 people participated. Of those 20 people, 5 competed only in professional sporting events, 12 competed in only amateur sporting events, and the rest competed in both. What was the population size for this study?

A. 5
B. 12
C. 20
D. 1,400