The maximum value of z=5x+7y is found subject to the constraints x+y≤5, x≥0, y≥0.
In linear programming, the maximum or minimum value occurs at a corner point (vertex) of the feasible region.
The corner points are where the boundary lines meet.
When x=0 and y=0: (0,0)
When y=0 and x+y=5, then x=5: (5,0)
When x=0 and x+y=5, then y=5: (0,5)
Evaluating z=5x+7y at each corner point:
At (0,0):
z=5(0)+7(0)
z=0
At (5,0):
z=5(5)+7(0)
z=25
At (0,5):
z=5(0)+7(5)
z=35
Comparing the values: 0, 25, and 35
The maximum value is 35, which occurs at the point (0,5).