m=10 kg, M=500 kg, v=5 m/s
Let V be the recoil speed of the gun.
According to the law of conservation of momentum,
Initial momentum = Final momentum
0 = mv + MV
V=−mvM=−/10×/5500=−0.1 m/s
Negative sign indicates that the gun moves backward as the bullet moves forward.