https://numbas.mathcentre.ac.uk/question/17235/apply-extended-euclidean-algorithm-to-find-gcd.zip?