Ok, so for a function like that, first of all choose any sensible value of
P.
In the mark scheme, they chose
P=800 (even though they don't say it) which means we have
80x+80y=800. This simplifies to
x+y=10.
Now mark down the x and y intercepts of this function. When
x=0 we have
y=10. Hence mark down (0,10).
When
y=0 we have
x=10. Hence mark down
(10,0).
Now join these two points up with a dashed line and label it as the objective function.
As I said, you can choose any
P you like but with practice you can start to notice which values are sensible choices. It doesn't matter which P you choose because at the end of the day, you're going to be sliding that line across on the graph which is equivalent to the value of P constantly changing in the first place; all you're doing is choosing a specific value and sketching the objective function to see how it looks like. So you're always going get the same optimal solution.