Two masses m and 3m are moving toward each other along the x axis with the same initial speeds vi . Mass m is traveling to the left, while mass 3m is traveling to the right. They undergo a head-on elastic collision and each rebounds along the same line as it approached. Find the final speeds of the masses.