Applying the conservation of momentum after first shot, we get
0+0=mv+49mv′
v′=−v49m/s
Now, the initial momentum of cart before the second shot is 49mv′.
Applying the conservation of momentum after the second shot, we get
0+49mv′=mv+48mv′′
49(−v49)=mv+48mv′′
v′′=−v24m/s
Thus, the velocity of cart after the second shot is v24m/s.