The ratio of the number of rice bags between A and B is 5:3. If 120 bags of rice are transported from A to B, the number of rice bags in the two warehouses is equal. How many bags of rice are there in A and B?
甲、乙两仓现有大米袋数比是5：3，如果从甲仓运120袋大米到乙仓，则两仓大米袋数相等，甲、乙两粮仓共有大米多少袋？
<gadget id="calculator">5 + 3</gadget>
<output>8</output>

<gadget id="calculator">5 / 8</gadget>
<output>5/8 = around 0.625</output>

<gadget id="calculator">3 / 8</gadget>
<output>3/8 = around 0.375</output>

<gadget id="calculator">(5/8) - (3/8)</gadget>
<output>1/4 = around 0.25</output>

<gadget id="calculator">2 / (1/4)</gadget>
<output>8</output>

<gadget id="calculator">120 * 8</gadget>
<output>960</output>

<result>960</result>