A body A of mass 1kg is resting on a table and connected to body B and C as shown. The surface are smooth and string and spring are massless. The string is inextensible. Find the extension in the spring if force constant of spring $=k=50 N/m$ take $(g=10 m/s^2)$