You can put this solution on YOUR website! To graph a line, use the generic line equation of y = m * x + b. where m and b are numbers. m represents the slope, the rise over run of the line. b is the y-interceptor, number where the line crosses on the y-axis of the graph. (Think interceptor catches the y-axis. x = 0 all along the y axis.)
If you know the line equation in y = m * x + b form, then you can graph the line. Your example is already in y = m * x + b , where m and b are -1 and -2 respectively. So the graph is a line which catches the y axis at (0,-2) and has a slope (m) value of -1. The rise over run is -1 over 1. So you rise(fall) -1 and go over (to the right or left) positive one. The line is a 45 degree top left to downward right diagonal line hitting the point -2 on the y-axis.