hint:
Since we are in equlibrium at rest, the mass M of the pulley does not matter.
equilibrium means