Hi,

I'm to find the GCD of two polynomials, f(x) and g(x) in the field of integers mod 5, and then write it as a linear combination using the polynomials.

and

I've found that the gcd , but I'm having a lot of trouble turning that into the correct answer which is:

.

Did I make a mistake somewhere? Thanks for any help.