Final answer:
Pipe C will take approximately 30 hours to empty the tank.
Step-by-step explanation:
Let's represent the rates of filling and emptying the tank as fractions of the tank's capacity per hour.
If Pipe A can fill the tank in 5 hours, its filling rate is 1/5 of the tank's capacity per hour.
Let's say it takes pipe C x hours to empty the tank. Since pipe B takes 2 hours less than pipe C to fill the tank, its filling rate is 1/(x-2) of the tank's capacity per hour.
With all 3 pipes open, the net filling rate is the sum of the filling rates of pipes A and B, minus the emptying rate of pipe C. Given that it takes 3 hours to fill the tank, we can set up the equation: 1/5 + 1/(x-2) - 1/x = 1/3.
To simplify the equation, we can multiply through by 15x(x-2) to clear the fractions.
After solving the equation, we find that it will take Pipe C approximately 30 hours to empty the tank.