In the system shown all the surfaces are frictionless while pulley and string are massless. The mass of block A is 2 m and that of block B is m. The acceleration of block B immediately after