Logic Question pls answer assignment. helllppppppp

In samonte's kitchen there was 3 tin cans, Each cans contans 3 cakes.

One night Alexander crept into the kitchen, opened the 3 cans and ate 3 cakes, the surprising thing was,when alexander went back to bed, each cans is still contained with 3 cakes, what did he do?