Hello Shadows

Welcome to Math Help Forum!A) There are ways of choosing the first digit, and ways of choosing the second digit. So there are ways of choosing the two digits, one after the other. (The codes are, of course, from to inclusive.)

B) There are only choices for the first digit, followed by for each of the other two digits. So there are possible choices altogether.

Grandad