3p^2-6p-18=0
completing the square
A:3(p-2)^2-30=0
since 3 is not a perfect square you want to factor it out,
3(p-2)^2
that then equals
3p^3 -6p+12
your values for p^2 and p, are correct but not the integer number you want -18 you have 12, so to get there you would have to + negative 30
so 3(p-2)^2-30=0