Let the mass of 0.10 kg be at a distance x from the 2 kg mass and at a distance of (2 − x) from the 4 kg mass.
Force between 0.1 kg mass and 2 kg mass = force between 0.1 kg mass and 4 kg mass
Now, gravitation potential energy of the system is given by