Let us consider the torques about the wedge placed at the 40 cm mark.
Mass of the rod, M=500 g=0.5 kg. Since the rod is uniform, its weight acts at its centre of gravity, which is at the 100 cm mark.
Distance of the 2 kg mass from the wedge = 40 cm−20 cm=20 cm=0.2 m.
Distance of the centre of gravity of the rod from the wedge = 100 cm−40 cm=60 cm=0.6 m.
Distance of the unknown mass m from the wedge = 160 cm−40 cm=120 cm=1.2 m.
For the rod to be in rotational equilibrium, the net torque about the wedge must be zero. By the principle of moments, the sum of anticlockwise moments equals the sum of clockwise moments.
Anticlockwise moment = Moment due to 2 kg mass = 2×g×0.2
Clockwise moment = Moment due to rod's weight + Moment due to mass m = 0.5×g×0.6+m×g×1.2
Equating the moments:
2×g×0.2=0.5×g×0.6+m×g×1.2
0.4=0.3+1.2m
0.1=1.2m
m=1.20.1=121 kg.