The slope intercept form of the equation of a line is
y = mx+b where m is the slope and b is the y intercept
We need to find the slope using the two points on the line
(-2,2) and (0,-4)
m = ( y2-y1)/(x2-x1)
= ( -4 - 2)/( 0 - -2)
= = ( -4 - 2)/( 0 +2)
= -6 / 2
=-3
The slope is -3
We know the y intercept is where it crosses the y axis ( where x=0)
The y intercept is -4
y = -3x-4
The equation is y = -3x-4