Hi,
Using the standard slope-intercept form for an equation of a line y = mx + b
where m is the slope and b the y-intercept.
Using the point-slope formula,to find m
(-2,-4) and (-5,-7)
m = [-7-(-4)] / [-5-(-2)] = -3/-3 = 1
y = 1*x + b Using ordered pari pt(-2,-4) to solve for b
-4 = 1*-2 + b
-2 = b
y = x -2