What does the law of conservation of momentum mean?
It means that in a collision (even an inelastic collision) total momentum after the collision is the same as total momentum before the collision.
Momentum before = momentum after
where the u terms are initial velocity and the v terms are velocity after the collision.
If the 2 become stuck together, then
I hope this helps,