Find the coordinate vector of p relative to the basis S = {P1, P2, p3} for P2

Find the coordinate vector of p relative to the basis S = {P1, P2, p3} for P2.
(b) p = 2 - x + x2; p1 = 1 + x, p2 = 1 + x2, p3 = x + x2