Take the total tank capacity as 60 units, a number divisible by both 30 and 60. The filling pipe then adds $60/30 = 2$ units per minute, while the leak removes $60/60 = 1$ unit per minute. Together the tank gains $2 - 1 = 1$ unit each minute, so filling all 60 units takes $60/1 = 60$ minutes. $\boxed{60 \text{ minutes}}$