Solve for P by simplifying both sides of the equation, then isolating the variable.
p=-3Q/2+M/2
That works????????