(x2{}^22 - 4x + p)
Use the coefficient of the middle variable(-4x)
= ( −42\; \frac{-4}{2}2−4)2{}^22
= (-2)2{}^22
= 4