Let M gram be the mass of the rule. Since density of the rule is uniform, its weight Mg will act at its middle point i.e., at the 50 cm mark (Fig.).
The weight of the rule produces an anti-clockwise moment about the knife-edge O. In order to balance it, 10gram mass is to be suspended at the end B, to produce a clockwise moment.
From the principle of moments,
Anti-clockwise moment = Clockwise moment
Mg × (60 – 50) = 10g × (100 - 60)
or Mg × 10 = 10g × 40
∴ M = 40gram