The graph of the function \displaystyle y=2-x is a straight line. This straight line has slope \displaystyle -1 (the coefficient in front of the x) and cuts the y-axis at \displaystyle y=2.