To solve for the relationship between a and b given that the maximum value of Z = ax + by occurs at both (2, 4) and (4, 0), follow these steps:
This shows that the correct relationship between a and b is a = 2b.