Ta có \(\frac{2}{3}-\frac{1}{3}.\left(x-\frac{3}{2}\right)-\frac{1}{2}\left(2x+1\right)=5.\)
\(\Rightarrow\frac{2}{3}-\frac{1}{3}.x+\frac{1}{3}.\frac{3}{2}-\frac{1}{2}.2x-\frac{1}{2}=5\)
\(\Rightarrow\frac{2}{3}-\frac{x}{3}+\frac{1}{2}-x-\frac{1}{2}=5\)
\(\Rightarrow\frac{4}{6}-\frac{2x}{6}+\frac{3}{6}-\frac{6x}{6}-\frac{3}{6}=\frac{30}{6}\)
\(\Rightarrow4-2x+3-6x-3=30\)
\(\Rightarrow4-8x=30\)
\(\Rightarrow-8x=26\)
\(\Rightarrow x=\frac{26}{-8}=-\frac{13}{4}\)
Vậy \(x=-\frac{13}{4}\)