Arthur D. answered 04/15/20
Mathematics Tutor With a Master's Degree In Mathematics
distance=rate*time
total distance=rate*total time
You are traveling the same distance up the hill as down the hill so the distance that you travel does not matter.
Pick an arbitrary distance such as 20 miles up the hill and 20 miles down the hill. I chose 20 because it is a multiple of 20 and a multiple of 5.
d=r*t
20=5*t
t=4 hours
20=20*t
t=1 hour
total distance=40 miles and total time=5 hours
total distance=rate*total time
40=rate*5
rate=40/5
rate=8 miles per hour (average speed)
Choose another distance, say 60 miles.
60=5*t
t=12 hours
60=20*t
t=3 hours
120=15*rate
rate=120/15
rate=8 miles per hour
you can also use what is called the harmonic mean because the distances are the same
here is the simple form of the harmonic mean: (2*rate1*rate2)/(rate1+rate2)
(2*5*20)/(5+20)
200/25
8 miles per hour again
the answer will be closer to 5 mph, which it is, than to 20 mph because you are spending more time traveling at the lower rate of 5 mph