The equation is y = 2x - 12
Equation in slope intercept form is
[tex]y = mx + b[/tex]
Where,
m = slope
b = y-intercept
Putting the value of slope in this equation:
[tex]y = 2x + b[/tex]
From this we can solve the equation for b
[tex]b = y - 2x[/tex]
[tex]b = -2 - 2(5)[/tex]
[tex]b = -12[/tex]
Now, the equation of y-intercept becomes
[tex]y = 2x - 12[/tex]