Hillwalking

Andrew walks along a flat path, then up and down a hill, then back along the path. Is it possible to work out how far he has walked?

Problem



Andrew starts his walk along a flat path at an average speed of $4\text{km/h}$. Then he climbs a hill at an average speed of $3\text{km/h}$.

On reaching the top, he comes straight back down at a speed of $6\text{km/h}$, then goes back on the flat path at a speed of $4\text{km/h}$ again.

The walk takes him $2$ hours altogether. What is the total distance he walks?

If you liked this problem, here is an NRICH task that challenges you to use similar mathematical ideas.