According to Newton's law of gravitation, the force F of attraction between two objects of mass m_…