Answer:

Step-by-step explanation:
In order to know the velocity of the cars after the collision, we must calculate the acceleration after the collision. According to Newton's second law:

Using the following kinematics equation, we calculate the initial velocity which is the same velocity after collision, so, the final velocity is zero since the cars stopped after 6 meters:

According to the law of conservation of momentum and solving for
:
