-(3 + p)(-p)
-(3 + p) (-p)
-(-3p - p^2)
3p +p^2
This can be expanded to get 3p +p2, noting that the two negative signs cancel each other out.
.