Determine the slope of line passing through points (-2,1) and (0,5).
[tex]\begin{gathered} m=\frac{5-1}{0-(-2)} \\ =\frac{4}{2} \\ =2 \end{gathered}[/tex]Slope is 2.
The y-intercept is y-coordinate of point at which line intersects the y-axis. So line intersects the y axis at (0,5). The y-intercept is 5.
The general equation of line with slope m and y-intercet b is,
[tex]y=mx+b[/tex]Substitute the values in the equation to determine the equation of line.
[tex]y=2x+5[/tex]So equation is y = 2x +5.