Two blocks A and B of mass m each are connected by a light inextensible string going over a smooth light pulley. Initially, the system is at rest. A bullet of mass 2m strikes the block A and sticks to it. If the bullet strikes the block with a speed 2v, find the speed with which the block A moves, immediately after the collision.