\(ĐKXĐ:x\ne5,8\)
\(\frac{6}{x-5}+\frac{x+2}{x-8}=\frac{18}{\left(x-5\right)\left(8-x\right)}-1\)
\(\Rightarrow\frac{6}{x-5}+\frac{x+2}{x-8}=-\frac{18}{\left(x-5\right)\left(x-8\right)}-1\)
\(\Rightarrow6\left(x-8\right)+\left(x+2\right)\left(x-5\right)=-18-\left(x-5\right)\left(x-8\right)\)
\(\Rightarrow x^2+3x-58=-x^2+13x-58\)
\(\Rightarrow2x^2-10x=0\)
\(\Rightarrow2x\left(x-5\right)=0\)
\(\Rightarrow x\in\left\{0,5\right\}\)