When things crash, the total momentum before equals the total momentum after.
Picture passing a heavy bag between friends. The bag moves around, but no one makes a new one. Momentum moves from object to object. The total stays.
Try it: Crash them. Change the masses and crash them again. Do the two totals ever disagree?
total p before = total p after
Each object brings its own m × v. Going the opposite way? Use a minus sign.
Stick together
They move as one thing after. Add their masses: (m₁ + m₂) × v.
Bounce apart
Each one has its own velocity after: m₁v₁ + m₂v₂.
Before = after. That one idea solves every collision problem.
A 5 kg cart at 4 m/s hits a 5 kg cart at rest. They stick. How fast do they go?