What is the solution?

Solve 39564 = -44*p - 389*p + 29172 for p.
-24