they are added vectorially. If htere is a resultant force, the thing acclerates. If they vectorially add to zero, thing doesn't move
Let say the two train cars are of masses
and 
now if the speed of two cars are
and 
then we can say that the momentum of two cars before they collide is given by

here two cars are moving in opposite direction so we can say that the net momentum is subtraction of two cars momentum.
Now since in these two car motion there is no external force on them while they collide
So the momentum of two cars are always conserved.
hence we can say that the final momentum of two cars will be same after collision as it is before collision

F-free = m*g - F_air = m*a
F_air = 1.2 * m
a= (105 kg * 9.8 m.s^2 - 5*105) / 105 kg
a = 9.3 m/s
Hope this helps