Given data,
Mass of the car 1
Mass of the car 2
In the initial condition, velocity of car 1 is 2 m/s while car 2 is at rest.
Initial momentum of the car.
Final momentum of the car.
Applying conservation of momentum.
Substitute given values.
Therefore, the correct option is (B).