Đặt \(\left\{{}\begin{matrix}2018-x=a\\x-2019=b\end{matrix}\right.\) \(\Rightarrow a+b=-1\Rightarrow b=-1-a\)
\(\frac{a^2+ab+b^2}{a^2-ab+b^2}=\frac{19}{49}\Leftrightarrow49\left(a^2+ab+b^2\right)=19\left(a^2-ab+b^2\right)\)
\(\Leftrightarrow15a^2+34ab+15b^2=0\)
\(\Leftrightarrow\left(5a+3b\right)\left(3a+5b\right)=0\)
\(\Rightarrow\left[{}\begin{matrix}5a=-3b\\3a=-5b\end{matrix}\right.\) \(\Leftrightarrow\left[{}\begin{matrix}5a=-3\left(-1-a\right)\\3a=-5\left(-1-a\right)\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}2a=3\\2a=-5\end{matrix}\right.\) \(\Rightarrow\left[{}\begin{matrix}a=\frac{3}{2}\\a=-\frac{5}{2}\end{matrix}\right.\)
\(\Rightarrow\left[{}\begin{matrix}2018-x=\frac{3}{2}\\2018-x=-\frac{5}{2}\end{matrix}\right.\) \(\Rightarrow\left[{}\begin{matrix}x=\frac{4033}{2}\\x=\frac{4041}{2}\end{matrix}\right.\)