The ratio of money between A and B is 3:2. If A gives B 8 yuan, the ratio of money between A and B becomes 2:3. How much money do they have in total?
甲、乙两人的钱数比是3：2，如果甲给乙8元，则甲、乙两人的钱数比变成2：3，则两人共有钱多少元．
<gadget id="calculator">3 * 8</gadget>
<output>24</output>

<gadget id="calculator">2 * 8</gadget>
<output>16</output>

<gadget id="calculator">24 + 16</gadget>
<output>40</output>

<result>40</result>