Since we are at rest, the mass of the pulley plays no role in holding equilibrium.
Block 1:
Block 2:
Looking at the pulley, we know that the sum of the torques must add up to zero.

We use the values for the tensions found above as the forces.