Problem: Optimizing profit under constraint

Problem

Solution