Water tank A has 480 gallons of water in it and is leaking 40 gallons per minute. After how many minutes will both tanks be holding the same amount of water?