Solve this math problem

Solve 6*p = 49 - 31 for p.
3