The slope intercept form equation is expressed as
y = mx + c
where
m represents slope
c represents y intercept
The formula for determining slope is expressed as
slope, m = (y2 - y1)/(x2 - x1)
From the information given,
y2 = 6, y1 = 2
x2 = 0, x1 = 4
Slope, m = (6 - 2)/(0 - 4) = 4/- 4
m = - 1
We would determine the y intercept, c by substituting m = - 1, y = 6 and x = 0 into the slope intercept equation. It becomes
6 = - 1 * 0 + c
6 = c
c = 6
The equation would be
y = - x + 6