slope =
and equation of line is
y =
x + 3
calculate the slope m using the gradient formula
m = ( y₂ - y₁ ) / (x₂ - x₁ )
with (x₁, y₁ ) = 2, 7 ) and (x₂, y₂ ) = (- 1, 3 )
m =
=
=

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 gradient formula
with (x₁, y₁ ) = (- 4, - 3) and (x₂, y₂ ) = (0, 3 )
m =
=
=

the line crosses the y-axis at (0, 3 ) hence c = 3
y =
x + 3 ← equation of line