This is an algebraic expression. Simplifying it, we get: \( x + (-7 + p - 5) = x - 12 + p \).
Ответ: \( x - 12 + p \)