Two pipes A and B can fill a tank in 20 hours 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 water supplied by both the pipes goes out. How much time will the tank take to be full?