each of mass m are kept stationary by applying a horizontal force F=mg on particle B as shown in figure. Then: