So, you can start with the knowledge that it is a second degree, so the second derivative is linear and constant. Therefore, P''(2) = 2 can tell you that P''(x) = 2.
P'(x) will then be P'(x)=2x+(c1)
P(x) will be x^2 +(c1)x + (c2)
Use your initial values to solve from here...