Let's call the total volume of the tank as V. The rate each pipe fills the tank is given by the total volume of the tank divided by the amount of time it takes to fill the tank. Let's call the rate of the first pipe as r1, the rate of the second pipe as r2 and the rate of the third pipe as r3.
The product between the rate and the time that has passed will give to us the fraction of the tank that has been filled. When we open the three pipes at once, we sum their rates. When the tank is filled, the product between the rate and the time passed must give the total volume of the tank, therefore, we have the following equation:
It will take approximately 9.23 minutes to fill the tank if all pipes are opened together.
When the three pipes are opened, the fraction that has been filled(let's call it as x) is given by:
Then, the slowest pipe(the third pipe) is closed, then, after 3 more minutes we're going to fill an extra y amount of water, given by:
Then, after a time t with the first pipe open, we're going to fill the tank(remember that it has been filled already by the amounts x and y, therefore, we must subtract it from the total volume).
If the slowest pipe is shut off after 3 minutes and the fastest pipe is shut off 3 minutes later, it will take 12.75 minutes for the remaining open pipe to finish filling the tank.