Last time it was 16, but if it was pushed to the second time, the second pile did not change and the first pile doubled. It can be seen that the first pile had 16/2 = 8 before the last change, so the third pile had 16+8 = 24 before the last change and the second pile had 16. After the second exchange, the third pile doubled, so the third pile had 24/2= 12, the second pile had 16+ 12=28, and the first pile had 8. After the first exchange, the second pile is doubled, so the second pile has 28/2= 14, the first pile has 8+ 14=22, and the third pile has 12.
Simply put, this means
Pile No.1, No.2 and No.3
Third time 16 16 16
Second 8 16 24
The first 8 28 12
22 14 12