Answer
y = (1/2)x + 4
Step-by-step explanation
The first step is to get the gradient of the line.
The two points in the line are; (0,4) and (-4, 2).
Gradient = (4 - 2)/(0 - -4)
= 2/4
= 1/2
To get the function we use one of the point (0,4) and a general point (x,y).
1/2 = (y - 4)/(x - 0)
1/2 = (y - 4)/x
1/2 x= y - 4
y - 4 = (1/2)x
y = (1/2)x + 4