I am attempting to solve $ 769x\equiv1066 \mod 2022 $
Using the Euclidean Algorithm I have found the following:
$ 823\cdot 769 - 313\cdot2022 = 1 $
I am attempting to represent the solution in the form $ x\equiv a\mod n $ where $ 0 \le a\le n $
Where do $823$, $1066$ and $-313$ fit into the answer to the solution...?