Solve this math problem

Solve 1571 = 296*p - 2988 - 3729 for p.
28