There can be 21 different codes
Parameters:
Number of codes = 6
Number to choose from = 9
It is not stated that a number cannot be used more than once, so, the different codes that can be there is:
5.7m questions
7.4m answers