2" alt="-x-1-x+2=5, \ x<-1
\\\
x+1-x+2=5, \ -1 \leq x \leq 2
\\\
x+1+x-2=5, \ x>2" align="absmiddle" class="latex-formula">
2" alt="-2x=4, \ x<-1
\\\
3 \neq 5, \ -1 \leq x \leq 2
\\\
2x=6, \ x>2" align="absmiddle" class="latex-formula">
2" alt="x=-2, \ x<-1
\\\
x=3, \ x>2" align="absmiddle" class="latex-formula">
Ответ: -2; 3