To solve the problem it is necessary to apply the concepts related to Force of Friction and Tension between the two bodies.
In this way,
The total mass of the cars would be,
Therefore the friction force at 29Km / h would be,
In this way the tension exerts between first car and locomotive is,
Therefore the tension in the coupling between the car and the locomotive is