There are two bags of rice, bag B is 12 kg heavier than bag A. If 6 kg is poured from bag A to bag B, then the rice in bag A is (5/8) of bag B. How many kilograms did the two bags of rice originally weigh?
有两袋大米，乙袋比甲袋重12千克．若从甲袋倒给乙袋6千克，这时甲袋大米是乙袋的(5/8)．两袋大米原来共重多少千克？
<gadget id="calculator">6 + 6 + 12</gadget>
<output>24</output>

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

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

<gadget id="calculator">24 / (3/8)</gadget>
<output>64</output>

<gadget id="calculator">1 + (5/8)</gadget>
<output>13/8 = around 1.625</output>

<gadget id="calculator">64 * (13/8)</gadget>
<output>104</output>

<result>104</result>