The weight ratio of the two bags of sugar between A and B is 5:3. If 10 grams are taken out from the A bag and put into the B bag, the weight ratio of the A and B bags of sugar becomes 7:5. Excuse me: How many grams is the sum of the weight of these two packets of sugar?
甲、乙两包糖的重量比是5：3，如果从甲包取出10克放入乙包后，甲、乙两包糖的重量比变为7：5．请问：这两包糖重量的总和是多少克？
<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">7 + 5</gadget>
<output>12</output>

<gadget id="calculator">7 / 12</gadget>
<output>7/12 = around 0.583333</output>

<gadget id="calculator">(5/8) - (7/12)</gadget>
<output>1/24 = around 0.041667</output>

<gadget id="calculator">10 / (1/24)</gadget>
<output>240</output>

<result>240</result>