Given the equation:

The equation is already in the slope-intercept form, y = mx +b.
Where,
m = Slope of the line
b = Y-intercept
Thus,
The slope of the line, m = -1
The y-intercept = 2
In making the graph of the equation, we must determine at least two points of the line.
Let's determine two conditions: when x = 0 and y = 0.
Point 1: At x = 0,
y = -x + 2
y = 0 + 2
y = 2
(0,2)
Point 2: At y = 0,
y = -x + 2
0 = -x + 2
x = 2
(2,0)
The graph of the equation will be,