Two machines, Machine A and Machine B, are used to produce widgets. Machine A produces widgets at a rate of 30 widgets per hour, while Machine B produces widgets at a rate of 20 widgets per hour. If the two machines work together for 8 hours, but Machine A works 2 hours less than Machine B, how many widgets will they produce in total? Let's think step by step and output the final answer within \boxed{}.
user