I'm trying to find the greatest common divisor of $$p(x)=7x^3+6x^2-8x+4$$ and $$q(x)=x^3+x-2$$ where both $p(x),q(x)\in\mathbb{Q}[x].$ And if $d(x)=gcd(p(x),q(x)),$ I need to find two polynomials $a(x),b(x)$ such that $d(x)=a(x)p(x)+b(x)q(x).$ I'm if both $p(x),q(x)\in\mathbb{Z},$ the gcd would be $1$, but I don't know how to find it in $\mathbb{Q}.$
First attempt, I used the euclidean algorithm. I find the gcd is $\frac{1}{76}x-\frac{5}{152}$ which is very weird (Maybe wrong). And I couldn't find $a(x),b(x).$