Solve 18*p + 5*p = 51*p - 1176 for p.
42