You have initial capital and can complete at most projects. Each project has a profit and a minimum capital required. After completing a project, your capital increases by its profit. Maximize final capital. For , , , , the answer is . Do project (profit , now have ), then project (profit , now have ).
Here's a two-constraint greedy problem.
You need enough capital to start, then you want maximum profit.