When the maximum value of Z occurs at two corner points, Z has the same value at both points.
At point (59112,59135):
Z=p⋅59112+q⋅59135
Z=59112p+59135q
At point (0,3):
Z=p⋅0+q⋅3
Z=3q
Since both points give the maximum value:
59112p+59135q=3q
59112p=3q−59135q
59112p=59177q−59135q
59112p=5942q
112p=42q
8p=3q
Therefore, the relationship between p and q is 8p=3q.