
Benjamin T. answered 01/25/23
Physics Professor, and Former Math Department Head
Using the counting principle the number of possible codes from set X times the number of possible codes from set Y should give you the total number of codes. The permutations from set X come from the permutations formula (I'm assuming order matters)
P(5,3) = 5!/(5-3)! = 60
The combinations from set Y come from the counting principle
33=27
The total number of codes is then 60×27 = 1620