For the school science fair, Tanvi's group makes a model of three planets, P, Q and R, going round a faraway star. P is closest to the star and R is farthest from it.

On planet P, all the water has boiled away into vapour. On planet R, all the water is frozen solid. On planet Q, there are lakes and rivers of liquid water.
Which planet lies in the star's habitable zone, and why?
