A company makes two snack mixtures. A box of mixture A contains 6 ounces of peanuts, 1 ounce of M&M's, and 4 ounces of raisins and sells for \$4.25. A box of mixture B contains 12 ounces of peanuts, 3 ounces of M&M's, and 2 ounces of raisins and sells for \$6.55. The company has available 5400 ounces of peanuts, 1200 ounces of M&M's, and 2400 ounces of raisins. How many boxes of each mixture should the company make to maximize profit?
I'm suppose to solve using a graph, and I've been watching youtube videos for now over 3 hours and I'm feeling very stuck. I started off wrong because I was trying to do a equation for 2 variables because I thought box A and box B would be 2 variables but now I'm thinking the food would actually make it 3 variables meaning I just did all that work for nothing. I would really appreciate some further assistance on how you guys found the answer. My answer was $x=500$, $y=200$, $z(op)=3685$ .... please tell me I didn't completely mess this up. Thanks!

To do it by hand, imagine you only make A boxes. How many can you make? What is the limiting component? How much money do you make? Now if you make fewer A boxes and free up some of the limiting component, allowing you to make B boxes, is that good? For example, if peanuts were limiting you would have to skip two boxes of A to make a box of B. That is a bad deal because you trade two 4.25s for one 6.55. If the trade is profitable, keep doing it until you run out of something.