A factory produces widgets in two different shifts: the morning shift and the afternoon shift. The morning shift produces 3 times as many widgets as the afternoon shift. If the afternoon shift produces 40 widgets, and the factory plans to increase production in both shifts by 50% next month, how many widgets will the factory produce in total next month? Let's think step by step and output the final answer within \boxed{}.
user