Lets express these points in a line equation
[tex]\begin{gathered} \frac{y-4}{x+1}=\frac{6-4}{1+1}=\frac{2}{2}=1 \\ \text{cross multiply} \\ y-4\text{ =x+1} \\ y=x+5 \end{gathered}[/tex]Compare with y=mx+c
We see that our slope is 1 and our y-intercept is 5