Question 7
Some fish swim in the following order.

When someone says two numbers A and B, with A<B:
- Every fish before position A (to the left in the picture) swims away. At the same time every fish after position B swims away.
- The remaining fish keep their positions and are renumbered from 1, front to back (left to right).
For example, if someone says 2 and 16, the remaining fish are:

Starting with the original 20 fish, perform these changes:
- Someone says 4 and 18.
- Then someone says 6 and 12.
- Finally someone says 2 and 5.
What is the resulting order of the remaining fish?

When someone says two numbers A and B, with A<B:
- Every fish before position A (to the left in the picture) swims away. At the same time every fish after position B swims away.
- The remaining fish keep their positions and are renumbered from 1, front to back (left to right).
For example, if someone says 2 and 16, the remaining fish are:

Starting with the original 20 fish, perform these changes:
- Someone says 4 and 18.
- Then someone says 6 and 12.
- Finally someone says 2 and 5.
What is the resulting order of the remaining fish?



