In the situation as shown in figure if acceleration of B is a then find the acceleration of A (B always remains horizontal),