Determine the equation for the following:

The line with x-intercept of 4 and y-intercept of 2

y = mx+b

2 = 0x + b, so b=2
0 = 4m + b = 4m+2, so m = -1/2

y = -x/2 + 2