Hose A fills pool in 6 hours. 1/6 pool per hour
Hose B fills pool in x hours. 1/x pool per hour.
together they fill 1/x + 1/6 pools per hour.
together it takes 1/(1/x+1/6) hours per pool using both hoses.
This time is 3 hours faster than hose B.
1/(1/x+1/6)=x-3
6x/(x+6)=x-3
6x=x2+3x-18
x2-3x-18=0
(x-6)(x+3)=0 x=6 is only possible answer.
time for both hoses is 1/(1/6+1/6)=3 hours
1/(1/6+1/6)=6-3 3=3