I have to find the gcd $h$ of $f$ and $g$ in $\mathbb{F}_5[X]$.
$f=X^9+X^8+X^7+X^6+X^5+X^4+X^3+X^2+X+1,$
$g=X^4+X-2.$
Here is my polynomial division:
My solution is $3X^3-X^2+3X+1$ but this is not correct, because I have to use it for further tasks and it doesn't work there. In addition, wolfram alpha says the solution in modulo 5 is $X^2+3X+1$ and I can solve the other tasks with this polynomial.
Can someone please check my polynomial division?

This doesn't quite complete the procedure, however. You still have to find the remainder of $\ 3x^3-x^2+3x \ $ on division by $\ x^2+3x+1\ $, which you should find to be $0$, thus telling you that $\ x^2+3x+1\ $ is the desired gcd.