The number of table tennis balls in the two baskets of gymnasium A and B is equal. If 80 ping pong balls are taken from basket A and put into basket B, then the number of table tennis balls in basket B is 5 times that of basket A. How many ping-pong balls are there in the two baskets of A and B?
体育馆甲乙两筐乒乓球的个数相等．如果从甲筐取出80个放入乙筐，这时乙筐中乒乓球的个数是甲筐的5倍．甲乙两筐原来各有乒乓球多少个？
<gadget id="calculator">80 * 2</gadget>
<output>160</output>

<gadget id="calculator">5 - 1</gadget>
<output>4</output>

<gadget id="calculator">160 / 4</gadget>
<output>40</output>

<gadget id="calculator">40 + 80</gadget>
<output>120</output>

<result>120</result>