Joel, Jordan, Jacob, and Jonaven needed to fill up a tub for their science project. It would require 20 minutes to completely fill the tub with water if it flows at maximum capacity, but Jonaven forgot to plug the tub outlet. So, at maximum capacity, 30 pints of water flowed into the tub every 5 minutes while 6 pints of water flowed out. How long will it take for the tub to fill with water to the brim if it remains open to maximum capacity?