https://numbas.mathcentre.ac.uk/question/38089/blathnaid-s-copy-of-use-bezout-s-algorithm-to-solv/embed/