Write down the solution for this math problem: Solve 8141*p = -1049*p + 220560 for p.
24