[tex]\\ \rm\Rrightarrow \dfrac{p+3}{m}=-1[/tex]
[tex]\\ \rm\Rrightarrow p+3=-m[/tex]
[tex]\\ \rm\Rrightarrow p=-m-3[/tex]