the fig above shows two connected bodies of masses M\(_1\) and M\(_2\) in equilibrium under…