Answer :
Given data:
The given points are (1,4) and (2,5) .
The given y-intercept is c=-2.
The equation of the slope of the line is,
[tex]\begin{gathered} m=\frac{5-4}{2-1} \\ =1 \end{gathered}[/tex]The equation of the line is,
[tex]y=mx+c[/tex]Substitute 1 for m, and -2 for c in the above equation.
[tex]\begin{gathered} y=1(x)-2 \\ =x-2 \end{gathered}[/tex]Thus, the equation of the line is y=x-2.