max profit problem