Ok, so
Let me draw the situation here below:
Remember that the slope of a line is given by the formula:
[tex]\begin{gathered} m=\tan (\theta) \\ m=\tan (45)=1 \end{gathered}[/tex]The slope of our line will be 1.
Now, we could use the equation:
[tex]y=y_1+m(x-x_1)[/tex]Where (x1,y1) is a point of the line and m is the slope. Replacing our values:
[tex]\begin{gathered} y=5+1(x-(-2)) \\ y=5+x+2 \\ y=x+7 \end{gathered}[/tex]Therefore, the equation is y=x+7.