To solve this puzzle you need to catch the hint from the holes in the wall.Count the number of holes in each set of numbers.
1 has no holes = 06 has one hole = 18 has two holes = 2
So:9000 = 41223 = 06063 = 38888 = 8
Press the keypad and input the numbers 4038 to escape this level.