how can i find the equation for a function that includes the points:

(0,4) and

(2,0)

i was attempting to use substitution or simultaneous equations but it doesn't work cause I can't substitute the y intercept.

it ends up being 4=c

so i dont konw what to do