The free body diagram shows two horizontal forces acting on the 2 kg sphere. \(F_5\) points towards the 5 kg mass and is longer than  \(F_{10}\) pointing to the 10 kg sphere.
  <----F₁₀     2 kg       F₅---->
10 kg-------------------●-------------------5 kg
50 m             20 m