The weight ratio of the two bags of sugar between A and B is 4:1. If 10 grams are taken out from bag A and put into bag B, the weight ratio of the two bags of sugar becomes 7:8, then the total weight of the two bags of sugar is How many grams?
甲、乙两包糖的重量比是4：1，如果从甲包取出10克放入乙包后，甲、乙两包糖的重量比变为7：8，那么两包糖的总重量是多少克？
<gadget id="calculator">4 + 1</gadget>
<output>5</output>

<gadget id="calculator">4 / 5</gadget>
<output>4/5 = around 0.8</output>

<gadget id="calculator">7 + 8</gadget>
<output>15</output>

<gadget id="calculator">7 / 15</gadget>
<output>7/15 = around 0.466667</output>

<gadget id="calculator">(4/5) - (7/15)</gadget>
<output>1/3 = around 0.333333</output>

<gadget id="calculator">10 / (1/3)</gadget>
<output>30</output>

<result>30</result>