[tex](2p+4)+5(p-1)-(p+7)\\\\\text{use distributive property}\\\\2p+4+5p-5-p-7\\\\\text{simplify}\\\\(2p+5p-p)+(4-5-7)=6p-8[/tex]