Of two identical barrels, one is half full and one is two-thirds full. One quarter of the liquid in the second barrel (the barrel that's two-thirds full) is poured into the first. The first barrel now contains 25 more gallons than the second. Find the capacity in gallons of the barrels.
Solution
Let the barrels be barrel A and barrel B, each with a capacity of n gallons. Here is what happens.
Before After A 2n2n+41(32n)=2n+6n=32n B 32n32n−41(32n)=32n−6n=2n
Therefore,
32n−2n6nn=25=25=150 gal.