In the system shown in figure pulley is smooth. String is massless and inextensible. The acceleration of the system a, tensions T1 andT1(g=10m/s2) are