Given:
y-intercept = 8
x-intercept = -2
At y-intercept, x = 0: (0, 8)
At x intercept, y = 0: (-2, 0)
Use the slope intercept form:
y = mx + b
Where m is the slope and b is the y-intercept
To find an equation for the line, first find the slope.

Where
(x1, y1) ==> (-2, 0)
(x2, y2) ==> (0, 8)

The slope is 4
The y-intercept = 8
We have:
y = 4x + b
Therefore, the equation of the line is:
y = 4x + 8
ANSWER:
y = 4x + 8