A bag (mass M) hangs by a long thread and a bullet (mass m) comes horizontally with velocity v and gets caught in the bag. Then for the combined (bag + bullet) system
Initial momentum = mv
Final momentum =
By conservation of momentum
Velocity of (bag + bullet) system
Kinetic energy =