Two different buses start their routes at the same corner at 9 A.M. Buses from one route stop at the library every 9 minutes. Buses from the other route stop at the library every 12 minutes. In what number of minutes will both buses end up at the library?