Myopia, or short-sightedness, is a vision defect where a person can see nearby objects clearly but distant objects appear blurred. This occurs when the eyeball is elongated, causing light to focus in front of the retina instead of on it. A concave lens is used to correct myopia by diverging the incoming light rays before they enter the eye, ensuring they focus correctly on the retina.
Find the unknown frequency if 24 is the median of the following frequency distribution:
\[\begin{array}{|c|c|c|c|c|c|} \hline \text{Class-interval} & 0-10 & 10-20 & 20-30 & 30-40 & 40-50 \\ \hline \text{Frequency} & 5 & 25 & 25 & \text{$p$} & 7 \\ \hline \end{array}\]