What is the solution to this math problem?
Solve 1715 + 959 = 51*p + 365 - 241 for p.
50