garden city and fountain city r 180km apart. xavier departed from garden city and yara departed from fountain city at the same time. they headed towards space city. xavier travelled at a constant speed of 80km/h and yara travelled at a constant speed of 60km/h. how long did it take xavier to catch up with yara?

depends on the bearing of garden and fountain.

Let's say that they lie in the same direction from space. In that case, since their relative speed is 20 km/hr, it will take
180/20 = 9 hours for xavier to catch up (assuming that space city is at least 540 km from fountain)