The relationship between gravitational force and distance of separation between moon and planet is an inverse relationship.
The equation used to calculate universal force of gravitational attraction shows that the two masses of interacting objects have direct effect on the gravitational force. This implies that if there is a greater distance that is between the objects, then the attraction force will be smaller.
The law of gravity shows that all objects attract due to gravitational force. Objects with big masses; for example moon and earth have a greater attraction compared to smaller mass objects.