Write down the solution for this math problem: Solve 1174 = -217*p + 1288 + 1839 for p.
9