A bob of mass m=50g is suspended form the ceiling of a trolley by a light inextensible string. If the trolley accelerates horizontally