You divide the mass by the weight, to get the gravitationalacceleration. Then you use the fact that this gravitationalacceleration, or gravitational field, is inversely proportional tothe square of the distance. The distance should be calculated fromthe center of the Earth.