Three balls A,B and C of masses 2 kg, 4 kg and 8 kg , respectively, move along the same straight line and in the same direction, with velocities 4 m/s, 1 m/s, 3/4 m/s. If A collides with B and subse-quently B collides with C, find the velocity of ball A and ball B after collision, taking the coefficient of restitution as unity.

