hint:

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