A 3 kg mass moving to the right at 4 m/s collides with a 7 kg mass moving to the left at 2 m/s. If the collision is perfectly elastic, what are the final velocities of the two masses?