Two baskets of the same apples, A basket sells 8 kg, B sells 20 kg, and the rest of A basket is 3 times that of B basket. How many kilograms did the two baskets of apples originally weigh?
两筐一样的苹果，甲筐卖出8千克，乙筐卖出20千克，甲筐剩下的是乙筐的3倍．两筐苹果原来各有多少千克？
<gadget id="calculator">20 * 3</gadget>
<output>60</output>

<gadget id="calculator">60 - 8</gadget>
<output>52</output>

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

<gadget id="calculator">52 / 2</gadget>
<output>26</output>

<result>26</result>