A system of two blocks A and B are connected by an inextensible massless string as shown in figure. The pulley is massless and frictionless. Initially