A water tank is being filled at a constant rate. It takes 3 hours to fill the tank halfway. If the rate of flow remains the same, how long will it take to fill the entire tank? Let's think step by step and output the final answer within \boxed{}.
user