A bakery made 240 cookies in the first 4 hours of operation. In the next 2 hours, the bakery increased its production rate by 50%. How many cookies did the bakery make in total at the end of 6 hours? Let's think step by step and output the final answer within \boxed{}.
user