Answer:
y = -
x + 2
Step-by-step explanation:
The equation of a line in slope- intercept form is
y = mx + c ( m is the slope and c the y- intercept )
Calculate m using the slope formula
m = (y₂ - y₁ ) / (x₂ - x₁ )
with (x₁, y₁ ) = (0, 2) and (x₂, y₂ ) = (4, 0) ← 2 points on the line
m =
=
= - 
Note the line crosses the y- axis at (0, 2) ⇒ c = 2
y = -
x + 2 ← function rule