Answer:
y = 2x - 2
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 =

with (x₁, y₁ ) = (0, - 2) and (x₂, y₂ ) = (2, 2)
m =
=
= 2
The line crosses the y- axis at (0, - 2) ⇒ c = - 2
y = 2x - 2 ← equation of line