Given:
Initial speed, \( u = 40\, \text{m/s} \),
Angle, \( \theta = 30^\circ \),
Gravity, \( g = 9.8\, \text{m/s}^2 \).
Vertical component of velocity:
\[
u_y = u \sin \theta = 40 \times 0.5 = 20\, \text{m/s}
\]
Maximum height:
\[
H = \frac{u_y^2}{2g} = \frac{20^2}{2 \times 9.8} = \frac{400}{19.6} = 20.41\, \text{m}
\]
Nearest option is 20 m.