I agree that the point $(2,2)$, is the only one that meets all criteria. Now we need to compare the value of $f$ at another point on the constraint,...
There is an unclosed curly brace after method has12, but an extra closing brace after method linearIn. Also, you have not addressed by remark 2 from...