There are two boxes of balls, A and B, and the ratio of their numbers is 3:1. If 6 balls are taken from box A and put into box B, the ratio of the numbers of boxes A and B is 5:3. How many are there?
有甲、乙两箱皮球，它们的数量之比是3：1，如果从甲箱取出6个球放入乙箱，这时甲、乙两箱的数量比为5：3，这两箱球共有多少个？
<gadget id="calculator">3 + 1</gadget>
<output>4</output>

<gadget id="calculator">3 / 4</gadget>
<output>3/4 = around 0.75</output>

<gadget id="calculator">5 + 3</gadget>
<output>8</output>

<gadget id="calculator">5 / 8</gadget>
<output>5/8 = around 0.625</output>

<gadget id="calculator">(3/4) - (5/8)</gadget>
<output>1/8 = around 0.125</output>

<gadget id="calculator">6 / (1/8)</gadget>
<output>48</output>

<result>48</result>