|x + 2| - 5 = 2018
⇔ |x + 2| = 2018 + 5
⇔ |x + 2| = 2023
⇔ \(\left[{}\begin{matrix}x+2=2023\\x+2=-2023\end{matrix}\right.\)
⇔ \(\left[{}\begin{matrix}x=2023-2\\x=-2023-2\end{matrix}\right.\)
⇔ \(\left[{}\begin{matrix}x=2021\\x=-2025\end{matrix}\right.\)
Vậy x ∈ \(\left\{2021;-2025\right\}\)