We are given the following frequency distribution:
The total frequency \( N \) is the sum of all frequencies:
\[
N = 7 + 5 + 16 + 12 + 2 = 42
\]
The cumulative frequency is:
\[
CF_1 = 7, \quad CF_2 = 7 + 5 = 12, \quad CF_3 = 12 + 16 = 28, \quad CF_4 = 28 + 12 = 40, \quad CF_5 = 40 + 2 = 42
\]
The median class is the class interval whose cumulative frequency is greater than or equal to \( \frac{N}{2} \). Here, \( \frac{42}{2} = 21 \), and the cumulative frequency just greater than 21 is 28, which corresponds to the class interval \( 20 - 30 \).
Step 1: Conclusion.
Thus, the median class is \( 20 - 30 \).