In the following diagram, the rod is in equilibrium. Then,
F1×d1 = F2×d2
For a body to be in equilibrium, net torque = 0 and net force = 0
Net torque = 0, i.e. sum of anticlockwise moments = sum of clockwise moments
So, we can write
F1×d1 = F2×d2