Correct option is D
Given:
Inlet A fills the tank in 5 hours.
Inlet B fills the tank in 6 hours.
Outlet C empties the full tank in 30 hours.
Solution:
The rate of filling or emptying the tank is:
Rate of A = (since A fills the tank in 5 hours)
Rate of B = (since B fills the tank in 6 hours)
Rate of C =(since C empties the tank in 30 hours)
Combined rate
Combined rate =
This means that all three pipes together fill of the tank per hour.
To fill the entire tank, the time required is the reciprocal of the combined rate:
Time taken
The pipes will take 3 hours to fill the tank.
Alternate Method:

Time taken = hours