Problem: Maximize profit

Problem

Solution