vanilla ice-cream = x
chocolate ice-cream = y
x*1 + y*2 <= 300
x*3 + y*2 <= 480
find x and y, when 2.50*x+4.50*y-max
lets Z- max value
so we have:
x + 2y = 300
3x + 2y = 480
2.5x+4.5y=Z
we can multiply the first equation by -1 and lets add two equations
2x=180, so x=90
y=(300-x)/2 = 105
Z = 2.5*90+4.5*105 = 697.5
x = 90 - vanilla ice-cream
y = 105 - chocolate ice-cream
max = 697.5
Comments
Leave a comment