[tex]|5-x|=2\iff5-x=2\ \vee\ 5-x=-2\ \ \ \ |-5\\\\-x=-3\ \vee\ -x=-7\ \ \ |\text{change the signs}\\\\\boxed{x=3\ \vee\ x=7}[/tex]