\(B=\left|2x-1\right|+\left|3x+2\right|\)
\(=\left|2x-1\right|+\left|3.2+2\right|\)
\(=\left|2x-1\right|+8\)
\(=\left[{}\begin{matrix}2x-1+8\left(x\ge\dfrac{1}{2}\right)\\1-2x+8\left(x< \dfrac{1}{2}\right)\end{matrix}\right.\)\(=\left[{}\begin{matrix}2x+7\left(x\ge\dfrac{1}{2}\right)\\9-2x\left(x< \dfrac{1}{2}\right)\end{matrix}\right.\)