Yeah, the pack is a better deal. A gallon is only 128 oz which costs $7. While the pack of juice is 33.84 oz, if you buy three of the juice packs they would then weigh 135.36 oz at the cost of $7.17. Which is only 17 cents more than a gallon.
Are you able to expand everything first? from there you would be able to combine line terms. basically if you have 3x+2x it would combine to 5x because they have x in them.