To solve for c, subtract all the terms on the right side not containing c.
P -(a + b + (d/4)) = c
c = P - a - b - (d/4)
_____
In such equations, parentheses are commonly missing. If that is the case here, then first we undo the division by 4, then we subtract the "not c" terms.
P = (a + b + c + d)/4 . . . . maybe what you meant