Correct option is B
Given:
Inlet A can fill the tank in 15 hours
Inlet B can fill the tank in 20 hours
Outlet C can empty the tank in 12 hours
Solution:
Rate of A = of the tank per hour
Rate of B = of the tank per hour
Rate of C = of the tank per hour (negative because it is emptying the tank)
The combined rate of A, B, and C is:
Combined rate =
=
Since the combined rate of A, B, and C is , the time taken to fill the tank is the reciprocal of the rate:
Time to fill the tank
The tank will be filled in 30 hours.
Alternate Method:

Time to fill the tank = = 30 hours