There are two piles of apples, A and B. After removing 2 apples from pile A, the remaining number of apples in pile A is twice that of pile B, and then take 3 apples from pile B. At this time, the remaining number of piles in pile A is 3 times the number of the rest of pile B. Find the original number of apples in pile B.
有甲乙两堆苹果，从甲堆中拿走2个后，甲堆剩下的个数是乙堆的2倍，再从乙堆拿走3个苹果，这时甲堆剩下的个数是乙堆剩下的个数的3倍．求乙堆原来共有多少个苹果．
<gadget id="calculator">3 * 3</gadget>
<output>9</output>

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

<gadget id="calculator">9 / 1</gadget>
<output>9</output>

<result>9</result>