Let P and Q be the two bodies,
the mass of body P = m1
And the mass of body Q = m2
As per the universal law of gravitation, the force of attraction between the earth and the body P is given by,
FP = {๐บ ร ๐_๐ ร ๐_1 \over ๐ ^2}ย ย ย ย ย ย โฆ (1)
Where, R is the distance of the body from the centre of the earth.
Similarly, the force of attraction between the earth and the body Q is given by
FQ = {๐บ ร ๐_๐ ร ๐_2 \over ๐ ^2}ย ย ย ย ย ย โฆ (2)
Since, the two forces, i.e., FP and FQ are equal, thus from (1) and (2),
{๐บ ร ๐_๐ ร ๐_1 \over ๐ ^2}ย =ย {๐บ ร ๐_๐ ร ๐_2 \over ๐ ^2}
โน m1 = m2