Two taps A and B fill a swimming pool together in two hours. Alone, it takes tap A three hours less than B to fill the same pool. How many hours does it take each tap to fill the pool separately?