On a 20 km tunnel, connecting two cities A and B, there are three gutters (1, 2, and 3). The distance between gutters 1 and 2 is half the distance between gutters 2 and 3. The distance from city A to its nearest gutter, gutter 1, is equal to the distance of city B from gutter 3. On a particular day, the hospital in city A receives information that an accident has happened at gutter 3. The victim can be saved only if an operation is started within 40 min. An ambulance started from city A at 30 km/hr and crossed gutter 1 after 5 min. If the driver had doubled the speed after that, what is the maximum amount of time would the doctor get to attend the patient at the hospital. Assume 1 min is elapsed for taking the patient into and out of the ambulance?