-p(p-q+8)

multiply

distributive property of multiplication

-p(p)
+
-p(-q)
+
-p(8)

= -p^2 + pq - 8p