Calculate the acceleration of blocks A and B in cases (a)