Calculate the missing frequency from the following distribution, given that the median of the distribution is 24.
Age in years: 0-10 10-20 20-30 30-40 40-50
No. of persons: 5 25 ? 18 7
A) 12
B) 15
C) 16
D) 20