There are two baskets of apples, A and B. The weight of apples in basket A is 40kg, and the weight of apples in basket B is 30kg. If the mass ratio of apples in baskets A and B is 3:2, how many kilograms of apples should be taken from basket B and added to basket A?
有甲、乙两筐苹果，甲筐苹果重40kg，乙筐苹果重30kg，要使甲、乙两筐苹果质量比是3：2，应从乙筐拿出多少千克苹果加入甲筐？
<gadget id="calculator">40 + 30</gadget>
<output>70</output>

<gadget id="calculator">3 + 2</gadget>
<output>5</output>

<gadget id="calculator">70 / 5</gadget>
<output>14</output>

<gadget id="calculator">14 * 2</gadget>
<output>28</output>

<gadget id="calculator">30 - 28</gadget>
<output>2</output>

<result>2</result>