A planet has mass m1 and is at a distance r, from the sun. A…