A 5.40 kilogram ball, moving to the right at a velocity of +2.35 meter per second on a frictionless table, collides head-on with a stationary 7.45 kilogram ball. Determine the final velocities of the balls if the collision meets the following conditions.
(a) elastic
(b) completely inelastic.