A tank has 1 filling pipe and 2 drain pipes. The filling pipe can fill an empty tank in 10 minutes while the 2 drain pipes can drain a full tank in 20 and 30 minutes respectively If all 3 are opened in an empty tank, how long will it take to fill it?