two pipes can separately fill a tank in 20 and 30 hours respectively . both the pipes are opened to fill the tank but when the tank is full , a leak develops in the tank through which one - third of water supplied by both the pipes goes out . what is the total time taken to fill the tank ?