The diagram to analyze the orbital motion can be shown as,
Here, a is the acceleration of moon and v is the speed.
The above diagram indicates the orbital motion of the moon around the earth. The moon is more towards the earth than the sun due to larger gravity of earth and at the same time the moon has its velocity that tends moon to move. Therefore, the moon has balanced gravitational and centripetal force to keep in an uniform orbital motion.