Looking at the equation, it is apparent that it would follow a linear model as there are no exponents or powers (eg x^2x2)
Then what we can do if find to points on the graph and draw a line through these points. The easiest points to find are usually the y"-intercept"y-intercept and x"-intercept"x-intercept
The y"-intercept"y-intercept is when x=0x=0, so to find that point, make x=0x=0 in the equation, and solve for yy
x=0x=0
=>-2(0)+y=2⇒−2(0)+y=2
=>y=2⇒y=2
Hence, when x=0x=0, y=2y=2. This represents the point (0,2)(0,2). So we should plot this point:

Then we calculate the other point, the x"-intercept"x-intercept
The x"-intercept"x-intercept is when y=0y=0, so to find that point, make y=0y=0 in the equation, and solve for xx
y=0y=0
=>-2x+(0)=2⇒−2x+(0)=2
=>-2x=2⇒−2x=2
=>x=2/-2⇒x=2−2
=>x=-1⇒x=−1
Hence, when y=0y=0, x=-1x=−1. This represents the point (-1,0)(−1,0). So we should plot this point with the other point:

Now join the two points with a straight line:

And you have the graph of your equation
You can use any two poinst on the line though. The only difference is that instead of finding when x=0x=0 or y=0y=0, you would find when x="another number like "3x=another number like 3 or when y="another number like "4y=another number like 4
It is easier to find the y"-intercept"y-intercept and x"-intercept"x-intercept but if you want to challenge yourself, find two points other than the y"-intercept"y-intercept and x"-intercept"x-intercept