$R$ - commutative Ring, and $a$ non-zero-divisor
$R^x$ - multiplicative Monoid? (it's called Einheitsgruppe in German, maybe unitary group?)
I started by stating, that if $a\mid b$ and $b\mid a \rightarrow a=b$.
So for $a\mid b$, $\exists x\in R$ with $xa=b$ and for $b\mid a,\exists y\in R$ with $yb=a$
Now: $b=xa=xyb=wb$, with $w=xy$.
$\stackrel{a=b}{\rightarrow} b=wa$
Now the problem that I think I have with my proof, is that R is not a given Ring. For example $a=b$ wouldn't work in $\mathbb{Z}$. Is there any other way to do the proof?