P1

P2

A: (0, 0)
B: (0, 30)
C: (40, 0)
D: (15, 30)
E: (40, 13.33)
eq1: (2 * x) + (3 * y) = 120
pol1, a, b, d, e, c = Polygon(A, B, D, E, C)
eq3: x = 40
f: y = 30
Lucro = 69000 (slider from 0 to 69000)
eq2: (1000 * x) + (1800 * y) = Lucro