Your paint inventory consists of 60 gallons of blue, 40 gallons of red, and 30 gallons of yellow. To make purple paint you mix equals parts of blue and red. To make orange paint you mix equal parts of red and yellow. To make green paint you mix equal parts of blue and yellow. Purple paint sells for $6 a gallon, orange for $20, and green for $9.
There is a fixed disposal charge for every unused gallon. How much of each of purple, orange, and green paint should you mix to maximize profits if the disposal cost is (a) $4 per gallon, and (b) $6 per gallon.