Question 7
Beaver has a machine with trays A, B and C.

It operates as follows:
- Trays A and B contain some balls.
- If B is empty, the machine moves all balls from A to C.
- If B is not empty, the machine creates and adds to A as many new balls as are currently in B, then destroys one ball in B and repeats the process.
Initially A contains 2 balls and B contains 5. How many balls will C contain at the end?

It operates as follows:
- Trays A and B contain some balls.
- If B is empty, the machine moves all balls from A to C.
- If B is not empty, the machine creates and adds to A as many new balls as are currently in B, then destroys one ball in B and repeats the process.
Initially A contains 2 balls and B contains 5. How many balls will C contain at the end?