A factory produces two types of widgets, A and B. Each widget A requires 3 hours of labor and 2 hours of machine time, while each widget B requires 2 hours of labor and 5 hours of machine time. If the factory has 50 hours of labor and 60 hours of machine time available, what is the maximum number of widgets (A and B combined) that the factory can produce? Let's think step by step and output the final answer within \boxed{}.
user