The maximum value of xy + 5 subject to 2x + y = 4 is:
Look at it this way: solving fully: apply relevant formula, put numbers, compute. Result comes as 7. Easy verification shows it satisfies condition.
Ref: NCERT Mathematics Class XII — Linear Programming