Explanation :
Using the law of conservation of energy
When two cars collide with each other then the momentum is same before collision and after collision but energy is changed after collision in form of heat and sound.
We know this collision is inelastic collision.
In Inelastic collision, when two objects collide with each other then the momentum is conserved but kinetic energy is not conserved.