Using remainder theorem, since x - 3 is a factor, then
given 2x2−2x+p2x^{2} - 2x + p2x2−2x+p, f(3) = 0
2(32)−2(3)+p=0 ⟹ 18−6=−p2(3^{2}) - 2(3) + p = 0 \implies 18 - 6 = -p2(32)−2(3)+p=0⟹18−6=−p
p=−12p = -12p=−12