Two blocks A and B of masses m and 2 m