What came to my mind for this question is:
Consider one of the cars. The velocity and mass of this car are V and M respectively.
And the velocity and mass of the piece attached to the car are m, v respectively.
Before the collision, the velocity of this piece relative to this car is zero. So its...