A water tank with a capacity of 500 gallons of water is filled up to two-fifth of the tank. There were two pipes, A and B, to fill the tank. Pipe A can fill the tank in 10 minutes, whereas pipe B can fill it in 6 minutes.
If Macey opens both the pipes to fill the tank, then how long will it take to fill the tank completely?