I don't understand how you do these 2 problems.

(p-7)(p+8)
& (-7+p)(8+p)

if you have to find P then set them equal to zero eg

p-7=0
p=7

OR foil it out eg
(p-7)(p+8)=P2+p-56