A factory produces widgets and gadgets. If 70% of the total production are widgets and the rest are gadgets, and the factory produces a total of 5000 units a day, how many widgets and gadgets does the factory produce each day? Let's think step by step and output the final answer within \boxed{}.
user