[tex]\bf \cfrac{p+2}{p+7}=\cfrac{3}{6}\implies \cfrac{p+2}{p+7}=\cfrac{1}{2}\implies 2(p+2)=1(p+7)\implies 2p+4=p+7 \\\\\\ p+4=7\implies p=3[/tex]