A planet has mass, M, and radius R, If the universal gravitational constant is G,…