A water tank has two valves, one for inlet pipe and the other is outlet pipe. If the tank is empty the inlet valve is

opened, the tank will be full of water after 5 hours. If the tank is full and the outlet valved is opened, the tank

will be emptied in 8 hours. Suppose the tank is empty and both valves are opened, in how many hours will the

tank be full?