1. ## Need help with 10th grade math problem.

There are 6 barrels of root beer in the store.
In the picture below it is shown how much liters of root beer is in each barrel.
2 customers come to the store and one of them bought 2 full barrels, while the other one bought 3.
It is also known that the second customer bought twice as much root beer than the first one.
There was only 1 barrel left, which one?

Need a solution to this.

2. ## Re: Need help with 10th grade math problem.

$2(a_1+a_2)=(b_1+b_2+b_3)$

it's easy enough to code up a little routine to solve this

Customer 1 buys (15,18) for a total of 33 liters.

Customer 2 buys (16,19,31) for a total of 66 liters

The 20 liter keg is left over.

3. ## Re: Need help with 10th grade math problem.

Here is the same question with the complete solution:

Need help with 10th grade math problem. - General Discussion - backpack.tf forums