Two metal balls of masses 10 kg and 20 kg, moving in opposite directions on a frictionless floor, collide elastically. If the velocities of the balls are 3 m/s and 1 m/s respectively before collision as shown in the figure, then the velocities of the balls after collision are respectively