Two baskets of apples are equal in weight. After basket A sells for 14 kilograms and basket B sells for 38 kilograms, the remaining weight of basket A is three times that of basket B. How much are the two baskets of apples in kilograms?
两筐苹果的重量相等，甲筐卖出14千克，乙筐卖出38千克以后，甲筐余下的重量是乙筐的3倍，原来两筐苹果都是多少千克？
<gadget id="calculator">38 - 14</gadget>
<output>24</output>

<gadget id="calculator">3 - 1</gadget>
<output>2</output>

<gadget id="calculator">24 / 2</gadget>
<output>12</output>

<gadget id="calculator">12 + 38</gadget>
<output>50</output>

<result>50</result>