The ratio of the tonnage of rice in warehouses A and B is 5:3. If warehouse A transfers 4 tons of rice to warehouse B, the tonnage of warehouses A and B is the same. How many tons of rice did warehouses A and B originally have?
甲、乙两仓大米吨数的比是5﹕3，如果甲仓调4吨到乙仓，则甲、乙两仓吨数一样多．甲、乙两仓原来各有大米多少吨？
<gadget id="calculator">4 * 2</gadget>
<output>8</output>

<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">8 / (1/4)</gadget>
<output>32</output>

<gadget id="calculator">32 * (5/8)</gadget>
<output>20</output>

<result>20</result>