Two taps A and B can fill a tank in 5 hrs and 20 hrs respectively when working alone. If both taps are opened together, a hole in the tank causes the filling to take 30 minutes longer than it otherwise would. If the tank is completely filled, how much time (in hours) will it take for the tank to empty due to the water draining from the hole?