Maximizing Profit

A linear programming solution.

When is profit (p) maximized?