There are two barrels of oil, A and B, and the oil in barrel A is 174 kg more than that in barrel B. If 4 kg are taken from each of the two barrels, then (1/3) of oil in barrel A is equal to (1/2) of oil in barrel B. What is the total weight of the two barrels of oil in kilograms?
有甲、乙两桶油，甲桶油比乙桶油多174千克，如果从两桶中各取出4千克，则甲桶油的(1/3)等于乙桶油的(1/2)．原来两桶油共重多少千克．
<gadget id="calculator">3 / 1</gadget>
<output>3</output>

<gadget id="calculator">174 * 3</gadget>
<output>522</output>

<gadget id="calculator">4 - 174</gadget>
<output>-170</output>

<gadget id="calculator">522 + (-170)</gadget>
<output>352</output>

<gadget id="calculator">522 + 4 + 352</gadget>
<output>878</output>

<result>878</result>