x = 50, -40
I hope this is what you are looking for.
[tex]|x-5|=45\iff x-5=45\ \vee\ x-5=-45\ \ \ \ |+5\\\\\boxed{x=50\ \vee\ x=-40}[/tex]