Ta có: \(2021-\left|y-2021\right|=y\)
\(\Leftrightarrow\left|y-2021\right|=2021-y\)
\(\Leftrightarrow\left[{}\begin{matrix}y-2021=2021-y\left(y\ge2021\right)\\y-2021=y-2021\left(y< 2021\right)\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}y-2021-2021+y=0\\y-2021-y+2021=0\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}2y=4042\\0y=0\left(luônđúng\right)\end{matrix}\right.\)
\(\Leftrightarrow\left[{}\begin{matrix}y=2021\left(nhận\right)\\0y=0\left(luônđúng\right)\end{matrix}\right.\)
Vậy: \(y\le2021\)