p2+6p+9
Trying to factor I assume p2+6p+9 find 2 numbers that multiply to get 9 and add to get 6. That's 3 and 3.
(p+3)(p+3)