Pipe A can fill a tank in 5 hours. Pipe B can fill the same tank in 7 hours. If both pipes were open, how long would it take them to fill an empty tank?