A factory produces 240 gadgets in 8 hours. Each gadget is sold for $15. Calculate the average number of gadgets produced per hour and the total revenue generated from these gadgets. Let's think step by step and output the final answer within \boxed{}.
user