Let the total distance be s.
Jason walked halfway and Gui Li walked two-fifths of the way. Because when Jason walked to the library, Gui Li still had one-fifth of the way to go, which means she had already walked four-fifths of the way. So when Jason walked halfway, she walked two-fifths of the way. The remaining three-fifths of the road has not yet been taken. So 3/5 * S = 468. S = 780。