9. Two cities A and B are 30 km apart. From both of these cities, simultaneously, two hikers start their journeys towards each other.

Two cities A and B are 30 km apart. From both of these cities, simultaneously, two hikers start their journeys towards each other. They are walking at a constant speed of 5 km/hour each. Simultaneously, a fly leaves the city A. It flies at the speed of 10 km/hour and passes the hiker from its city. When it reaches the B hiker, it turns around and flies back to A hiker. It keeps doing so until the hikers meet. At the moment they do meet, the fly lands on the shoulder of the A hiker as he continues his journey to B. How many kilometers has the fly flown?