Problem: Maximize profit function

Problem

Solution