Hello there,
Well we are going to start off with the equation to find the slope based on the given points:
[tex]\frac{y_{2} - y_{1} }{x_{2} -x_{1} }[/tex]
Now using the two given points we are going to plug in and solve:
[tex]\frac{(-12)-(-14)}{(-18)-(-22)}[/tex] = [tex]\frac{2}{4}[/tex] = [tex]\frac{1}{2}[/tex]
From this you know that [tex]\frac{1}{2}[/tex] is the slope of the equation. However, to find the y-intercept we are going to use y = mx+ b and plug in one of the points to solve:
(-14) = [tex]\frac{1}{2}[/tex] (-22) + b
(-14) = (-11) + b
-3 = b
That means that the y-intercept is at (0, -3). Lastly, we are just going to plug all this into the slope-intercept form:
y = [tex]\frac{1}{2}[/tex] - 3
Hope I helped,
Amna