Write down the solution for this math problem: Solve 52*p - 161*p + 46*p = 176*p - 3585 for p.
15