Write the objective function as the objective row
P−5x−4y=0 Every variable is taken to the left-hand side of P=5x+4y.
Read the objective row as a list of coefficients
(−5, −4, 0, 0, 1) The entries are taken in the column order x, y, s1, s2, P.
Recall what a slack variable does
constraint≤limit⟺constraint+s=limit, s≥0 A slack variable measures the unused amount of the resource in that constraint.
State the required entry
objective row, x column=−5 The entry is the negative of the coefficient of x in P.