Look more carefully. You should notice that the box is only 9 units wide, so there are 18 in the first two rows and 2 in the third.