The slope of a line that passes through points (x1, y1) and (x2, y2) is computed as follows:
Replacing with the points (-1,-5) and (2,-2),
The slope-intercept form of a line is:
y = mx + b
where m is the slope and b is the y-intercept of the line.
Replacing with point (-1, -5) and m = 1,
-5 = 1(-1) + b
-5 = -1 + b
-5 + 1 = b
-4 = b
The equation is:
y = x - 4