Three ball 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 4m/s,1m/s and 3/4m/s. If A collides with B and subsequently B collides with C, find the velocity of ball A and ball B after collision, taking the coefficient of restitution as unity.