You are able to change the distance you travel, making it the independant. As you go farther, the time increases, so it is dependant on the distance traveled, therefore it is the dependant.
The total distance traveled by a car depends on the amount of time. For instance, a car has been driving 50 miles per hour. Therefore, the distance covered is the dependent variable and time is the independent variable.