Here is a video I made which illustrates an approach:
https://drive.google.com/file/d/1JGLoOfwJvOSZr_6KNIKoGla_yyf3l3yc/view
I have not narrated it. I can add narration, but first I recommend that you try to follow it and work out as much as you can. You can post work here and we can try to give you further guidance. The equation that you end of needing to solve is a rather ugly cubic equation. If part of the purpose of the problem is to practice solving cubics, then go for it. Otherwise there are calculators that can solve it.
Patrick F.
01/18/23
Adam S.
After solving for m I get m is equal to either 5 or -2, and when solving for p, p is = to 0 or 3/2. I am not quite sure how I move forward from this step as I tried a couple ways of substituting but was not able to get a valid answer.01/18/23