Time spent on plane surface = 8km / 80km/h = (1/10) h
Distance / rate = time
Let x be the downhill part and y be the uphill part from the city to the beach
Then...on the return trip, the roles are reversed.....y is the downhill part and x the uphill part
So we have this system of total times ( in hrs)
x / 100 + y/ 60 + 1/10 = 2
y/100 + x / 60 + 1/10 = 3 simplify
x/100 + y/60 = 1.9
y/100 + x/60 = 2.9 mutiply both equations through by 300.....arrange as:
3x + 5y = 570 ⇒ mult through by 5 ⇒ 15x + 25 y = 2850
5x + 3y = 870 ⇒ mult through by -3 ⇒ -15x - 9y = -2610 add these
16y = 240
y = 15 (km)
3x + 5(15) = 570
3x + 75 = 570
3x = 495
x = 165 (km)
Total distance = 165 + 15 + 8 = 188 km