There is a batch of apples in both baskets A and B that are not full. If the apples in basket A are poured into B, B can hold 10 more apples; if all the apples in basket B are poured into A, B has 20 apples left. indivual. It is known that the number of apples in basket B is 2.5 times that of basket A when it is full. How many apples are there in this batch?
有一批苹果放在甲、乙两个筐中都没放满，如果把甲筐苹果倒入乙中，乙还能再装10个；如果把乙筐苹果全部倒入甲中，乙还剩20个．已知乙筐装满后苹果的个数是甲筐的装满后的2.5倍，这批苹果共有多少个？
<gadget id="calculator">10 + 20</gadget>
<output>30</output>

<gadget id="calculator">2.5 - 1</gadget>
<output>1.5</output>

<gadget id="calculator">30 / 1.5</gadget>
<output>20</output>

<gadget id="calculator">2.5 * 20</gadget>
<output>50</output>

<gadget id="calculator">50 - 10</gadget>
<output>40</output>

<result>40</result>