Answer:
The ratio is 
Explanation:
The diagram for this question is shown on the first uploaded image
Here we are assume the acceleration of the train is a
which makes the acceleration of each car a
From the question we are told that
Considering the second car
The force causing it s movement is mathematically represented as

Considering the first car
The force causing it s movement is mathematically represented as

=> 
=> 
=> 
=> 