An object in equilibrium has no net force acting on it and no net moment (rotational equilibrium).
The moment of a force is its turning effect. It is defined as the force × perpendicular distance of the line of action of the force from the pivot.
moment = F d cos θ

The perpendicular distance of the line of action of the force from the pivot P is xcosθ

Alternatively the force F could be resolved parallel and perpendicular to the line through the pivot P.

Moment = F d
The moment of a force is its turning effect. It is defined as the force × perpendicular distance of the line of action of the force from the pivot.
moment = F d cos θ
The perpendicular distance of the line of action of the force from the pivot P is xcosθ
Alternatively the force F could be resolved parallel and perpendicular to the line through the pivot P.