What is the solution?

Solve -491*p = -242*p - 188*p - 1012 + 4977 for p.
-65