Need help on the question below.

Bill exercises daily by walking on a treadmill. He sets the machine so that he will walk at a rate of 3.6 miles per hour. T = time in hours; D = distance in miles.
What are the independent and dependent variables?
Thanks..

Doesn't the distance he covers "depend" on the time he spends walking ?