Question 895200
Graph the line y = (-1/3)x + 2 on the xy axis like so


{{{ drawing( 500, 500, -10, 10, -10, 10,
grid(1),
graph( 500, 500, -10, 10, -10, 10, 0, (-1/3)x + 2)

) 
}}}


This line goes through (0,2) and (3,1). To get any point on this line, plug in a specific x value (like x = 0) into y = (-1/3)x + 2 and compute it to get the corresponding y value.


That's the entire graph shown above. We just want it graphed on the domain [-2,8]. So what we do is erase the portion to the left of -2 and to the right of 8


Basically we only graph if x is between -2 and 8 (inclusive to both endpoints)


Doing so gives us this final answer


{{{ drawing( 500, 500, -10, 10, -10, 10,
grid(1),
graph( 500, 500, -10, 10, -10, 10, 0),
blue(line(-2,8/3,8,-2/3)),
red(circle(-2,8/3,0.2)),
red(circle(-2,8/3,0.15)),
red(circle(-2,8/3,0.1)),
red(circle(8,-2/3,0.2)),
red(circle(8,-2/3,0.15)),
red(circle(8,-2/3,0.1))

) 
}}}

Notice how the red endpoints are at x = -2 and x = 8. These endpoints are closed circles to signify that we are including the endpoints.