Solution:
Concept: The rule is pivoted at its centre, so its own weight (100 gf) has no moment about O. A weight on the left of O gives an anticlockwise moment; one on the right gives a clockwise moment.
Given: Uniform metre rule of weight 100 gf pivoted at its centre O; 150 gf at A, OA = 40 cm; 250 gf at B, OB = 20 cm.
Step 1 — (i) Total anticlockwise moment.
150 gf hangs at A, 40 cm to the left of O.
τanti=150 gf×40 cm=6000 gf cm
Step 2 — (ii) Total clockwise moment.
250 gf hangs at B, 20 cm to the right of O.
τclock=250 gf×20 cm=5000 gf cm
Step 3 — (iii) Difference.
Subtract the clockwise moment from the anticlockwise moment.
Δτ=6000 gf cm−5000 gf cm=1000 gf cm
Step 4 — (iv) Place the 100 gf.
It must supply the missing clockwise moment of 1000 gf cm, so it goes to the right of O at a distance d.
100 gf×d=1000 gf cm
d=100 gf1000 gf cm=10 cm

Check: The clockwise moments now add up to the anticlockwise moment.
5000+100×10=5000+1000=6000 gf cm
Watch out: The rule's own 100 gf weight acts at O and has no moment; do not include it in the moments.
Therefore, (i) 6000 gf cm, (ii) 5000 gf cm, (iii) 1000 gf cm, and (iv) the 100 gf weight goes 10 cm to the right of O, on the side of B.