Problem from Lewis Carroll:
A man walked for 5 hours, first along a level road, then up a hill, and
then he turned around and walked back to the starting point along the same
path. He walks 4 mph on the level, 3 mph uphill, and 6 mph downhill. Find
the distance he walked.
We also know that D(2) = D(3) since you travel the same distance uphill
as you do downhill when you begin and end in the same place. So now, we
have
When we clear the fractions, we get
since D(2) = D(3). So, he walked 20 miles in five hours.