Which of Kepler's laws describes the relationship between the average distance of a planet from the Sun and the time the planet needs to make a revolution around the Sun?

Athe law of gravity
Bthe law of periods
Cthe law of ellipses
Dthe law of equal area and equal time