There is a way that is less error-prone, and it uses tables
Index $i$Quotient $q_{i-1}$ Remainder $r_i$ $x_i$ $y_i$
$0$ $102$ $1$ $0$
$1$ $64$ $0$ $1$
$2$ $102\div64=1$ $102-64=38$ $1-1\times0=1$ $0-1\times1=-1$
$3$ $64\div38=1$ $64-38=26$ $0-1\times1=-1$ $1-1\times-1=2$
$4$ $38\div26=1$ $38-26=12$ $1-1\times-1=2$ $-1-1\times2=-3$
$5$ $26\div12=2$ $26-2\times12=2$ $-1-2\times2=-5$ $2-2\times-3=8$
$6$ $12\div2=6$ $12-6\times2=0$ $2-6\times-5=32$ $-3-6\times8=-51$
Where it can easily be seen that $\gcd(102,64)=2$ which is the last non-zero remainder and $-5\times102+8\times64=2$.
If you want to find all solutions of this Linear Diophantine Equation, then use the following formula: $r=r_0-51n$ and $s=s_0+32n$. That is, $\forall n \in \mathbb{Z}$ and where $r_0=8$ $s_0=-5$
Side note: if you "factor" this equation, you get $32r+51s=1$, then:
$8\times32\equiv1\pmod{51}$
$256\equiv1\pmod{51}$
In fact, $256=5\times51+1$
EDIT: THE SECOND MODULAR MULTIPLICATIVE INVERSE:
$-5\times51\equiv1\pmod{32}$
This can be thought of as:
$-255\equiv-31\pmod{32}$
Adding $32$ is the same as not doing anything at all when working in $\mathbb{Z}_{32}$ and therefore
$-255\equiv1\pmod{32}$
Another way to think about this is $-255-1\equiv0\pmod{32}$, which implies
$-256\equiv0\pmod{32}$
In fact, $-256=32\times-8$
Hope this helps!