As Jillian drives from J to G, suppose that she drives x km uphill, y km on flat ground, and z km downhill.
This means that when she drives from G to J, she will drive z km uphill, y km on flat ground, and x km downhill. This is because downhill portions become uphill portions on the return trip, while uphill portions become downhill portions on the return trip.
We are told that Jillian drives at 77 km/h on flat ground, 63 km/h uphill, and 99 km/h downhill.
Since time equals distance divided by speed, then on her trip from J to G, her time driving uphill is 63x hours, her time driving on flat ground is 77y hours, and her time driving downhill is 99z hours.
Since it takes her 3 hours and 40 minutes (which is 332 or 311 hours), then 63x+77y+99z=311 A similar analysis of the return trip gives 99x+77y+63z=313 We are asked for the total distance from J to G, which equals x+y+z km. Therefore, we need to determine x+y+z.
We add the two equations above and simplify to obtain 63x+99x+77y+77y+99z+63zx(631+991)+y(771+771)+z(991+631)x(7⋅91+9⋅111)+772y+z(9⋅111+7⋅91)x(7⋅9⋅1111+7⋅9⋅117)+772y+z(7⋅9⋅117+7⋅9⋅1111)x(7⋅9⋅1118)+772y+z(7⋅9⋅1118)x(7⋅112)+772y+z(7⋅112)772(x+y+z)amp;=324amp;=8amp;=8amp;=8amp;=8amp;=8amp;=8 Thus, x+y+z=277⋅8=77⋅4=308.
Finally, the distance from J to G is 308 km.