I want to fill my bucket using both cold and hot water.

I have two taps for both cold and hot water. The hot water tap fills the bucket in exact 6 hours and cold water tap fills the bucket in exact 4 hours.

I turn both of them simultaneously but I forgot to turn off another tap which removes the water out of the bucket. This tap can empty the bucket in 12 hours.

How Long will it take to fill the bucket?

3 hours

Explanation :

(1/6 + 1/4 - 1/12) ^ (-1)

= (1/3)^(-1) = 3