That is to say, they are all 16.
So before the third operation, there were eight in the first pile.
So before the third operation, there were 24 in the third pile.
So before the second operation, the third heap has 12.
So the second operation is to take out 12 pieces from the second pile and put them into the third pile.
So before the second operation, there were 28 in the second pile.
So before the first operation, the second heap has 14.
That is, the first operation is to take out 14 pieces from the first pile and put them into the second pile.
So before the first operation, there were 22 in the first pile.
So the original pile is 22, the second pile is 14, and the third pile is 12.