A factory produces widgets at a constant rate. If 5 machines can produce 150 widgets in 3 hours, how many widgets can 8 machines produce in 7 hours, assuming all machines work at the same rate? Let's think step by step and output the final answer within \boxed{}.
user