Kepler's third law states that the square of period of revolution (T) of a planet around the sun, is proportional to third power of average distance, r between the sun and the planet i.e. $T^2 = Kr^3$.
Here, K is constant.
If masses of the sun and the planet are M and m respectively, then as per Newton's law of gravitation, force of attraction between them is $F = \frac{GMm}{r^2}$, where G is gravitational constant.
The relation between G and K is described as