The new pump fills 1/5 of the tank every hour, and the old one fills 1/7 of the tank per hour. Thus, the fraction of the tank filled every hour is 1/5+1/7=12/35. As a result, the tank will take 35/12 hours to fill completely (since 35/12*12/35 is one).