In one dimension, a 12 kg ball moving to the right at 9 m/s collides with a 4kg ball moving to the left at 3 m/s. The collision is perfectly elastic. Find the final velocities of both balls.