P=|3x-6|+|3x-1|=|6-3x|+|3x-1|\(\ge\)6-3x+3x-1=5
Dấu bằng xảy ra khi \(\left\{{}\begin{matrix}6-3x\ge0\\3x-1\ge0\end{matrix}\right.\Leftrightarrow\left\{{}\begin{matrix}x\le2\\x\ge\frac{1}{3}\end{matrix}\right.\Leftrightarrow\frac{1}{3}\le x\le2\)
=> b=1/3, a=2
S=5
Vậy S=5