Subtract \(5\) from both sides.
\[x=13-x-5\]
Simplify \(13-x-5\) to \(8-x\).
\[x=8-x\]
Add \(x\) to both sides.
\[x+x=8\]
Simplify \(x+x\) to \(2x\).
\[2x=8\]
Divide both sides by \(2\).
\[x=\frac{8}{2}\]
Simplify \(\frac{8}{2}\) to \(4\).
\[x=4\]
x=4