Short answer: 10 kg at 5 m/s has momentum 50 kg·m/s and 125 J of kinetic energy. A 2 kg mass at 3 m/s hitting a stationary 1 kg mass perfectly elastically leaves them at 1 m/s and 4 m/s — momentum 6 kg·m/s before and after, with no energy lost.
The two conservation statements
Momentum is conserved in a collision with no outside force, which is what makes the problem solvable. Energy is not conserved unless the collision is perfectly elastic, and the page shows the loss so the difference between the two statements is visible in the numbers rather than only in prose.
Worked example
A 1,200 kg car at 15 m/s hits a stationary 1,500 kg car and they lock together: v = (1200 × 15) ÷ (1200 + 1500) = 6.67 m/s, and 135 kJ becomes 60 kJ — over half the energy goes into crumpling metal. That is why crumple zones exist and why the restitution 0 case is worth calculating.