I have to determine the lowest degree of $P$ given by the following system : $\left\{ \begin{array}{l} P \equiv 2X \ \mod[X^2 -2X +1] \\ P \equiv 3X \ \mod[X^2 -4X+4] \end{array} \right.$
First, I say that $\exists \ Q_1, Q_2 \in K[X]$ such as :
$P(X)=(X^2-2X+1)Q_1(X)+2X$ and $P(X)=(X^2-4X+4)Q_2(X)+3X$
Then I obtain : $(X^2-2X+1)Q_1(X)-(X^2-4X+4)Q_2(X)=-X$
Then I proved by euclidian divison that: $\gcd(X^2-2X+1,X^2-4X+4)=1$
So according to Bezout theorem, $\exists \ U, V \in K[X]$ such as :
$(X^2-2X+1)U(X)+(X^2-4X+4)V(X)=1$
I've tried to find a particular solution for $U,V$ and to solve it like a diophantine equation but I think it does not work for polynoms. By intuition I said that $U(X)=aX+b$ and $V(X)=cX+d$ and found $U(X)=-2X+5$, $V(X)=2X-1$
Now I meet difficulties to find $P$
Thanks in advance.