Problem

Two toy carts collide head-on on a frictionless surface. Cart A has a mass of 0.50 kg and an initial velocity of 2m/s. Cart B has a mass of 0.30kg and initial velocity –2m/s. After the collision, the final velocities of A and B are –1m/s and 3m/s, respectively. What type of collision was this?