We want maximum profit, which is the max value of y.
We basically want for which x value, we have y as the maximum.
First,
let's take the derivative of y:
Maximum is when the derivative is equal to 0. So, the x-value when derivative is 0:
To get max profit, the widgets should be sold at $50.50