Math problem: Solve -3441 = -397*p + 8866 for p.
What is the solution?
31