optimization _ maximum profit, 2.pdf