give values to x and solve for y, to obtain coordinate points:
x=-1
y=2x-2 = 2(-1)-2 = -2-2=-4
Point 1 : (-1,-4)
x=0
y= 2(0)-2 = -2
Point 2 = ( 0,-2)
x=4
y= 2(4)-2 = 8-2 = 6
Point 3 (4,6)
plot the points on the graph and connect them with a straight line: