Determine the slope of line passing through points (-2,1) and (0,5).
![\begin{gathered} m=(5-1)/(0-(-2)) \\ =(4)/(2) \\ =2 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/xj3he6s56yd3uvrzkj5axpovim13y9sld2.png)
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,
![y=mx+b](https://img.qammunity.org/2023/formulas/mathematics/high-school/smsb8cbft03lwblmi49nf2l6jby2ofxzws.png)
Substitute the values in the equation to determine the equation of line.
![y=2x+5](https://img.qammunity.org/2023/formulas/mathematics/college/qz6sm2qok56u07bywkqdeu10nr1b8ijgr3.png)
So equation is y = 2x +5.