Maximize Z = 3x + 4y, subject to the constraints are x + y ≤ 4, x ≥ 0 and y ≥ 0.
Maximize Z = 3x + 2y, subject to constraints are x+2y≤10, 3x+y≤15 and x, y ≥0.