Let's start with an example. Suppose the function P(x,y) = 3xy - x3 - y3 represents the profit (in millions) for selling x thousands of product A and y thousands of product B. We want to find out how many of each product to sell in order to maximize our profit.