Let's begin with an easier question:
How many 5-digit id numbers can be made if the first three digits are 2, and the last two digits are not 2?
We then have 1 choice for each of the first three digits, and 9 choices for the last 2:
1*1*1*9*9 = 81
If we want to count how many 5-digit id numbers can be made with exactly three 2s and two other digits, we need to multiply the above by the number of ways we can choose three slots out of five to place the digit 2. We would have 5C3 choices for where to put the three 2s, so we should multiply by 5C3 = 10. Note that you shouldn't multiply by 5*4*3, because then you're assuming the order of the 2s matters, and if you shuffle the 2s around within a given id, the number remains the same.
10*9^2 = 810
If we want to count how many ids can be made with exactly three of one digit, and the other two different, we can multiply the above by 10, since there will be 810 ways to have three 0s, 810 ways to have three 1s, etc. So we would have 8100 such ids in total.
If it's a probability question, in each case we would need to divide by the total number of possible ids, which is 10^5.
For online GMAT math tutoring, or to buy my higher-level Quant books and problem sets, contact me at ianstewartgmat at gmail.com
ianstewartgmat.com