You can put this solution on YOUR website! graph y=-x-2
Two points determine a line.
Let x=0 then y=0-2=-2 giving you point (0.-2)
Let x=2 then y=2-2=0 giving you point (2,0)
Plot these two points and draw a line thru them as follows:
Cheers,
Stan H.