\(\Leftrightarrow\left(2x^2+x-2017\right)^2-4\left(2x^2+x-2017\right)\left(x^2-5x-2016\right)+4\left(x^2-5x-2016\right)^2=0\)
\(\Leftrightarrow\left(2x^2+x-2017-2\left(x^2-5x-2016\right)\right)^2=0\)
\(\Leftrightarrow11x-6049=0\)
\(\Rightarrow x=\frac{6049}{11}\)