We have the following:
[tex]\begin{gathered} y=-2x-2 \\ y=-x+1 \end{gathered}[/tex]To know the solution we must match the functions to know the value of x, just like that
[tex]\begin{gathered} -2x-2=-x+1 \\ -2x+x=2+1 \\ -x=3 \\ x=-3 \end{gathered}[/tex]now, for y:
[tex]\begin{gathered} y=-(-3)+1=3+1=4 \\ \end{gathered}[/tex]Therefore the solution is:
[tex](-3,4)[/tex]The graphical solution is the intercept between both lines, just like that