portion of the tank filled by pipe A in 1 minute = 1/20
A portion of the tank filled by pipe B in 1 minute = 1/30
Total portion filled by both pipe A and B in 1 minute = (1/20 + 1/30) = 1/12
Thus it will take 12 minutes to fill the tank completely if both the inlets are opened together.