Initial velocity of bullet and rifle is zero.
Mass of rifle = 5 kg
Mass of bullet = 501000=0.05kg
Final velocity of bullet = 100 ms−1
Final velocity of rifle = v
Since momentum is conserved, so initial momentum is equal to final momentum
(5×v)+(0.05×100)=0
v=(−100×0.05)5
v=−1 ms−1
The negative sign indicates that the rifle recoils with the velocity of 1 ms−1 in backward direction.