In the pulley-block arrangement shown in the figure, find the relation between acceleration of blocks A and B.