In the arrangement shown in the figure neglect the masses of the pulley and string and also friction. The accelerations of blocks A and B are