You are a producer of widgets. You own two factories, which were built at different times and have different efficiencies. Your production engineers tell you that the marginal productivity (per hour) of additional machines in producing widgets in each factory is as follows:
Factory A: MPKA = 140 - 2KA
Factory B: MPKB = 300 - 3KB
KA and KB are the numbers of machines in each factory.
You own 120 machines in total, all of which you intend to use. You can allocate them in any combination between the two factories. To maximize your profits, how many machines should you allocate to each factory? Explain the logic that lies behind your answer.