Answer:
y = x-2
Explanation:
y = mx + b as an equation
m = slope
slope = (change in y) / (change in x) = (y₂-y₁)/(x₂-x₁) = (y₁-y₂)/(x₁-x₂) = (2-(-2))/(4-0) = 4/4 = 1
y = 1*x + b
plug a value in, e.g. (0, -2)
-2 = 1 * 0 + b
-2 = b
our equation is thus
y = x - 2