The distance between the sun and the earth is r and the earth takes time t to make one complete revolution around the sun. Assuming the orbit of the earth around the sun to be circular, the mass of the sun will be proportional to
we know that
Further,