The equation of a line in 2 point form is
[tex]\frac{y-y_1}{x-x_1}=\frac{y_2-y_1}{x_2-x_1}[/tex]So, inputting the points, we have
[tex]\begin{gathered} \frac{y-3}{x+1}=\frac{6-3}{2+1} \\ \frac{y-3}{x+1}=\frac{3}{3}=1 \\ \text{cross multiply} \\ y-3=x+1 \\ y=x+4 \end{gathered}[/tex]So, the equation of our line is y = x + 4