You can put this solution on YOUR website! The basic linear equation is y = mx + b.
Always try to get your problems into this format to be able to compare them.
...
x + 2y = 4
Subtract x from both sides
2y = 4 - x
Divide both sides by 2
y = 4/2 - x/2
y = -x/2 + 2
...
m = -1/2, which will be a line sloping down to the right
x\
y-intercept will be +2 which is simply (0, 2)
x-interecept will be 4 because -1/2*4 + 2 = 0, which is the point (4, 0)
With two points you can draw a straight line.
...
Done.