I dont know how to do this, but download this app called "Photo math" and it will show u the answer and the work to solve this problem.
Expand by multiply outside term with each of the inside terms to get
6p^3-6p
A triangle and pentagon.
Or. Quadrilateral and octagon
Woah that looks hard and if no one answers just search it up