The problem is taken from my textbook in algebra and is given as:
Solve $x+4=3$ in $\mathbb{Z}_{7}$
From the euclidean algorithm I found that $2=4^{-1}\bmod(7)$
Now I'm not completly sure how to continue but I tried: $$x+4+4^{-1}=3+4^{-1} $$ $$x=3+4^{-1}=3+2=5 $$
However, the correct answer is $x=6$ and I'm not sure were I went wrong since the book don't have any examples so I would appreciate some help!