How do you graph y=-x+6y=x+6 by plotting points?

1 Answer

Pick a few values for xx (I would suggest ones that make y=-x+6y=x+6 easy to evaluate).
Plot the resulting (x,y)(x,y) value pairs on the Cartesian plane.
Draw line through the points.

Explanation:

For example, choosing x in {-1,0,+1}x{1,0,+1}
gives
color(white)("XXX"){: (ul(x),color(white)("XX"),ul(y=-x+6)), (-1,,7),(0,,6),(+1,,5) :}
results in the pairs:
color(white)("XXX")(-1,7), (0,6), (1,5)

Plotting these and drawing a line through these points should look like:
enter image source here