Answer:
You are correct.
Step-by-step explanation:
The x-intercept could be written the way you have or also it can be written as a point (-1, 0).
The y-intercept could also be written as a point (0, -2) But they are commonly written the way you have also.
So, the slope is -2. But just to be clear. That slope of -2 has nothing to do with the y-intercept of -2.
If you mark all the points on the line, to get from one point to the next point, you go down 2 and over (positive direction) 1. The down 2 in math is -2 and the over 1 is just 1. The slope is that ratio of -2/1.
Slope tells us if the line is going up or down, steep or flat, even horizontal. It was coincidence only that the y-intercept and slope were the same number.