Two masses $A$ and $B$, each of mass $M$ are fixed together by a massless spring. $A$ force acts on the mass $B$ as shown in figure. If the mass $A$ starts moving away from mass $B$ with acceleration ' $a$ ', then the acceleration of mass $B$ wil be :-