What is the solution?

Solve 1499*p = 687*p + 12992 for p.
16