Step-by-step explanation:
there are some pieces of information missing like the price of apples and flour. or the selling prices. or any restrictions like a fixed budget to buy ingredients or how many pies and cobblers he can make in a certain available time.
all we can say based on the given information :
one pie = 4a + 3f (a = apples, f = flour)
one cobbler = 2a + 3f
P(x, y) = 3x + 2y =
= x(selling price - 4a - 3f) + y(selling price - 2a - 3f)
the max. of P(x, y) is the maximum profit by selling pies and cobblers, which is without any further information +infinity.
the more pies and cobblers he sells, the bigger the profit - no limit.