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