Step 1: Calculate the Duration of the Fall
The ball is dropped from a height \( h = 500 \, \text{m} \), and we want to find the time it takes to reach the ground.
Using the kinematic equation for free fall without initial velocity:
\[
t = \sqrt{\frac{2h}{g}}.
\]
Substitute the values \( h = 500 \, \text{m} \) and \( g = 10 \, \text{m/s}^2 \):
\[
t = \sqrt{\frac{2 \times 500}{10}} = \sqrt{100} = 10 \text{ seconds}.
\]
Step 2: Determine Horizontal Velocity of the Ball
While the ball is falling, it also moves horizontally a distance of 400 m.
Since horizontal motion and vertical motion are independent, the horizontal velocity \( v_b \) remains constant during the fall and is given by:
\[
v_b = \frac{\text{horizontal distance}}{\text{time}} = \frac{400}{10} = 40 \text{ m/s}.
\]
Step 3: Apply the Principle of Conservation of Momentum
When the ball is fired from the gun, the gun recoils backward due to conservation of linear momentum.
Before firing, total momentum is zero, so after firing:
\[
\text{momentum of ball} + \text{momentum of gun} = 0.
\]
Mathematically,
\[
m_b v_b = m_g v_g,
\]
where \( m_b = 1 \, \text{kg} \) (ball mass), \( v_b = 40 \, \text{m/s} \) (ball velocity), \( m_g = 100 \, \text{kg} \) (gun mass), and \( v_g \) is the recoil velocity of the gun.
Rearranging for \( v_g \):
\[
v_g = \frac{m_b v_b}{m_g} = \frac{1 \times 40}{100} = 0.4 \text{ m/s}.
\]
Final Conclusion:
Therefore, the recoil speed of the gun is
\[
\boxed{0.4 \text{ ms}^{-1}}.
\]
This shows how momentum conservation helps determine recoil velocity in firing scenarios.