Let 1 designate the large pipe and 2 designate the small pipe.
Let R1 = flow rate of large pipe defined as gallons/hour & R2 = flow rate of small pipe as gallons/hour
Let T1 = Time for the large pipe to fill the tank and T2 = Time it takes to fill the tank
Let's assume that the tank holds 1000 gallons (you could assume another value but 1000 makes the math easier...... you can check the answers with another total volume assumed!)
We know
4*R1 + 4*R2 = 1000
T2 = T1 + 6
R1*T1 = 1000 = R2*T2 = R2*(T1+6) So, R1 = 1000/T1 & R2 = 1000/(T1 + 6)
Substituting into the first equation:
4*1000/T1 + 4*1000/(T1 + 6) = 1000
Then 4/T1 + 4/(T1 + 6) = 1 getting a common denominator & collecting terms, we obtain
T12 - 2T1 - 24 = 0 from which the only positive root is T1 = 6
Therefore, T2 (Rate for small pipe to fill the tank) = T1 + 6 = 12 hours