Two carts A and B are moving towards each other. A has a mass of 2.0 kg and a velocity of 50 m/s while B has a mass of 4.0 kg and a velocity of -25 m/s. They suffer a completely inelastic collision. Find
a) The final velocity of the two carts.
b) The kinetic energy lost during the collision.