A factory has three assembly lines A, B, and C. Assembly line A can produce 40 units per hour, assembly line B can produce 60 units per hour, and assembly line C can produce 80 units per hour. If assembly lines A and B work together for 3 hours, and then assembly lines B and C work together for another 2 hours, how many total units will be produced? Additionally, what is the average production rate per hour over the entire period? Let's think step by step and output the final answer within \boxed{}.
user