Answer:
n=15
Step-by-step explanation:
First of all let's define all the variables,
The total number of cars is given by n
The initial speed of the three cars is v
The final speed of all cars is

The mass of each car is m
So applying the conservation of the moment, we have

as
,
We have to,

n = 15
The total number of cars is 15