\(\dfrac{5x^3-8x^2-23x+6}{X}=\dfrac{5x^2+7x-2}{2x+1}\)
\(\Leftrightarrow X=\dfrac{\left(2x+1\right)\left(5x^3-8x^2-23x+6\right)}{5x^2+7x-2}\)
\(=\dfrac{\left(2x+1\right)\left(5x^3-15x^2+7x^2-21x-2x+6\right)}{5x^2+7x-2}\)
\(\Leftrightarrow X=\left(2x+1\right)\left(x-3\right)\)