Answer:
The total momentum must remain the same.
According to the law of conservation of momentum, in a system where particles collide, the momentum loss on one particles is gained by the other one. This is what create an reaction during the collision, for example, if two bodies collide, one will decrease its speed while the other will increase its speed, that's why the momentum is conserved.
So, basically, after the train cars collide, the momentum must be conserved, remaining the same.