Given,
The mass of the cart 1, m₁=5 kg
The mass of the cart 2, m₂=15 kg
The velocity of cart 1 is V₁
The velocity of cart 2 is V₂
The momentum of both carts is the same.
The momentum of an object is the product of the mass of the object and its velocity.
As the momentum of both carts is the same we have,
On substituting the known values,
Thus the velocity of cart 1 is three times the velocity of cart 2.
Therefore, cart 1 will move away with a higher velocity.