The median class of the following frequency distribution will be:
\[\begin{array}{|c|c|c|c|c|c|} \hline \text{Class-Interval} & \text{$0$--$10$} & \text{$10$--$20$} & \text{$20$--$30$} & \text{$30$--$40$} & \text{$40$--$50$} \\ \hline \text{Frequency} & \text{$7$} & \text{$8$} & \text{$15$} & \text{$10$} & \text{$5$} \\ \hline \end{array}\]