Dear Student,
Let W be the weight of the pan
Let the Weight of the Body be Wb
Now Balancing moment of Torque across the pivot( given both arms are equal= L )
Left hand moment= right hand moment
(W+Wb)L=W1L or W+Wb=W1....(i)
similarly W2=W+Wb...........(ii)
substracting (ii) from (i)
W-W2+Wb=W1-W-Wb
​2W=W1+W2-2Wb
W=((W1+W2)/2)-Wb ...(Ans)
Regards.