Two identical blocks A and B connected by a massless string are placed on a frictionless horizontal plane. A bullet having same mass moving with a speed u strikes block B from behind as shown. If the bullet gets embedded into the block B, then find the velocity of center of mass of A, B and C after collision ?