Answer: approximately 4.7368 minutes
This decimal value is the result of computing 90/19
=====================================================
Step-by-step explanation:
Let's find the LCM of 6, 9 and 15. First, list out the prime factorization of each value.
The unique prime factors are 2, 3, and 5. We have 2 show up at most once, 3 show up at most twice, and 5 show up at most once. The LCM is 2^1*3^2*5^1 = 2*9*5 = 18*5 = 90.
We'll use this LCM value to set up an example below.
---------------
Consider the tank to be 90 gallons. If we only use tap A, keep tap B closed, and don't open pipe C, then tap A fills the tank at a rate of 90/6 = 15 gallons per minute since it needs 6 minutes to completely fill the tank.
If we have tap B do all the work (keep tap A and pipe C closed), then the rate is 90/9 = 10 gallons per minute for this tap.
Keeping pipe C closed, the two taps A and B work together to have a combined rate of 15+10 = 25 gallons per minute.
Now we consider pipe C being opened. This drains the tank and can do so in 15 minutes (assume the taps A and B aren't open). If we're dealing with a full 90 gallon tank, then its rate is 90/15 = 6 gallons per minute.
The net rate is 25-6 = 19 gallons per minute. We can think of it as a tug of war where the taps A and B ultimately win out despite the fact that pipe C is draining the water. The two taps fill the tank faster than the pipe can drain the tank.
In other words, the tank ultimately gets filled up rather than drained out over the long run. That net speed is at 19 gallons per minute.
The amount of time needed is approximately 90/19 = 4.7368 minutes.
Side note: you can start with any size tank. It doesn't have to be 90 gallons. I picked on this value because it works cleanly with the original given numbers 6, 9 and 15.