$a=19845$, $b=218$
I got this far but am now stuck and don't know what to do.
19845 % 218 = 7
218 % 7 = 1
1 = 218 - (7*31)
7 = 19845 - (218*91)
1 = 218 - ((19845-218*91)*31)
Then from there I do not know how to simplify it to get the values for $s$ and $t$.