we have the linear equation
Remember that
To graph a line, we need at least two points
so
Find out the intercepts
step 1
Find out the y-intercept (value of y when the value of x=0)
For x=0
substitute
The y-intercept is the point (0,2)
step 2
Find out the x-intercept (value of x when the value of y=0)
For y=0
The x-intercept is the point (-2,0)
step 3
Plot the intercepts, and join them to graph the line
using a graphing tool
see the figure below