Step 1: Maximum height condition.
Maximum height \(H\) is given by:
\[
H = \frac{u_y^2}{2g} \le 20
\]
where \(u_y\) is vertical component of initial velocity.
Step 2: Vertical component of velocity.
\[
u_y = \sqrt{2 g H} = \sqrt{2 \cdot 10 \cdot 20} = \sqrt{400} = 20~\text{m/s}
\]
Step 3: Horizontal component of velocity.
Maximum velocity \(u = 40~\text{m/s}\), so horizontal component:
\[
u_x = \sqrt{u^2 - u_y^2} = \sqrt{40^2 - 20^2} = \sqrt{1600 - 400} = \sqrt{1200} \approx 34.64~\text{m/s}
\]
Step 4: Time of flight.
Time of flight \(T = \frac{2 u_y}{g} = \frac{2 \cdot 20}{10} = 4~\text{s}\)
Step 5: Horizontal range.
\[
R = u_x \cdot T = 34.64 \cdot 4 \approx 138.6~\text{m}
\]
Step 6: Conclusion.
Hence, the horizontal range is approximately 138.6 m.