A 3.0-kg cart is rolling along a frictionless, horizontal track towards a 1.3-kg cart that is held initially at rest. The carts are loaded with strong magnets that cause them to attract one another. Thus, the speed of each cart increases. At a certain instant before the carts collide, the first cart's velocity is +3.4 m/s, and the second cart's velocity is -1.4 m/s.
(a) What is the total momentum of the system of the two carts at this instant?
(b) What was the velocity of the first cart when the second cart was still at rest?