The equation is given to be:

The inequalities used as a constraint for the equation are given to be:

To optimize the equation, we will plot the inequalities using a graphing tool. The graph is shown below:
The white region of the graph represents the solution space.
The vertices of the graph will be used to optimize the equation. These are:

At (4, 5):

At (0, 5):

At (0, -1):

At (4, -1):

Therefore, the maximum value of P is 17.
The SECOND