A 4 kg cart is moving to the right with a speed of 2 m/s and collides with a 2
kg cart moving to the left with a speed of 1 m/s as shown in the image
above. As a result of the collision, the 4 kg cart comes to rest. Calculate the
speed of the 2 kg cart after the collision. Determine if the collision was
elastic or inelastic.