Jacob is filling a pool with 2 garden hoses. Hose A takes 12 hours to fill the pool. Hose B takes 18 hours to fill the pool. How long will it take to fill the pool of both garden hoses are working to fill the pool?