Hey I need help on a word problem. How would you set this up?
"A juice company makes two kinds of juice: Orangeade and Berry-fruity. One gallon of Orangeade is made by mixing 2.5 quarts of orange juice and 1.5 quarts of raspberry juice, while one gallon of Berry-fruity is made by mixing 3 quarts of raspberry juice and 1 quart of orange juice. A profit of $.50 is made on every gallon of Orangeade sold, and a profit of $.40 is made on every gallon of Berry-fruity sold. If the company has 150 gallons of raspberry juice and 125 gallons of orange juice on hand, how many gallons of each type of juice should be made to maximize profit?"
The Objective function is P = .5x + .4y where x is orangeade, y is berry-fruity and P is profit.
The constrait is the amounts of orange juice and raspberry juice but I don't know how to set up the equations. Can anyone explain? Thanks.