Answer:
Equation of line is given as y = mx + c, where m is the gradient and c is the y-intercept.
First find the gradient. Formula for gradient is given as (y2-y1)÷(x2-x1) or (y1-y2)÷(x1-x2).
Gradient = (2-0)÷(0-4) = -1/2
Equation of line is y = -1/2x + c
Substitute either one of the points into the equation to find c.
0 = -1/2(4) + c
c = 2
Hence, the equation of the line is y = -1/2x + 2.