The mass ratio of the two bags of sugar from A to B is 3:1. If 15 grams are taken from bag A and put into bag B, the mass ratio of the two bags of sugar from A to B is 9:5. What is the sum of the masses of the two bags of sugar? gram?
甲、乙两包糖的质量比是3：1，如果从甲包取出15克放入乙包，则甲、乙两包糖的质量比为9：5，那么两包糖质量的总和是多少克？
<gadget id="calculator">3 + 1</gadget>
<output>4</output>

<gadget id="calculator">3 / 4</gadget>
<output>3/4 = around 0.75</output>

<gadget id="calculator">9 + 5</gadget>
<output>14</output>

<gadget id="calculator">9 / 14</gadget>
<output>9/14 = around 0.642857</output>

<gadget id="calculator">(3/4) - (9/14)</gadget>
<output>3/28 = around 0.107143</output>

<gadget id="calculator">15 / (3/28)</gadget>
<output>140</output>

<result>140</result>