The equation of a line in the slope intercept form is expressed as
y = mx + c
where
m represents slope
c represents y intercept
The formula for determining slope is expressed as
m = (y2 - y1)/(x2 - x1)
Consideing the given points,
x1 = 0, y1 = 4
x2 = 2, y2 = 8
m = (8 - 4)/(2 - 0) = 4/2
m = 2
We would find the y intercept, c by substituting m = 2, x = 0 and y = 4 into the slope intercept equation. It becomes
4 = 2 * 0 + c
c = 4
Substituting m = 2 and c = 4 into the slope intercept equation, it becomes
y = 2x + 4
The last option is correct