\(\left|x-5\right|=\left|-7\right|\)
\(\Leftrightarrow\left|x-5\right|=7\)
Xét trường hợp 1: \(x-5=7\)
\(\Rightarrow x=7+5\)
\(\Rightarrow x=12\)
Xét trường hợp 2: \(x-5=-7\)
\(\Rightarrow x=-7+5\)
\(\Rightarrow x=-\left(7-5\right)\)
\(\Rightarrow x=-2\)
Vậy \(x=12\) hoặc \(x=-2\)