Solve this math problem

Solve 7712 = 144*p + 97*p for p.
32