There are two baskets of oranges, the first basket weighs 18 kg and the second basket weighs 10 kg. If after taking out the same amount of oranges from the two baskets, the mass of the first basket is three times that of the second basket, how many kilograms of oranges were taken from the two baskets respectively?
有两筐橘子，第一筐重18千克，第二筐重10千克．如果从两筐中取出同样多的橘子后，第一筐剩下的质量是第二筐的3倍，那么从两筐中分别取出了多少千克橘子？
<gadget id="calculator">18 - 10</gadget>
<output>8</output>

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

<gadget id="calculator">8 / 2</gadget>
<output>4</output>

<gadget id="calculator">10 - 4</gadget>
<output>6</output>

<result>6</result>