\(B=2\left|x+1\right|-3\left|-x-2\right|=2\left|x+1\right|-3\left|x+2\right|\)
khi x<-2 => B=-2x-2 -3[-(x+2)] =x+4
khi -2<=x<-1 => B=-2x-2 -3[(x+2)] =-5x-8
khi x>=-1 => B=2x+2 -3[ (x+2)] =-x-4
\(B=\left\{{}\begin{matrix}x+4;khi\left\{x< -2\right\}\\-5x-8;khi\left\{-2\le x< -1\right\}\\-x-4;khi\left\{x\ge-1\right\}\end{matrix}\right.\)