to answer the OP as shortly as possible:
you are "Double Arranging" when you set it up that way. I followed your same path, but then realized when you are arranging the 9 different options in the 1 slot and then 8 different options in the other slot, you have already arranged these when you performed the 4!/2!*2! (presumably to find how many ways we can arrange: aabb ---Type of Number)
1st) Number of ways we can arrange the Number of Type: aabb --- in which 2 Digits are the same and a Different 2 Digits are the Same
4! / (2!*2!) = 6 Scenarios
AND
2nd) for Any 1 Arrangement, the Different Combinations of Numbers are the Following:
Assuming Scenario: aa bb
9 Options ----- Locked 1 Option ------ 8 Options Remaining ------ Locked 1 Option
9 * 1 * 8 *1 / 2! ----- Divide out by 2! to avoid over-counting because we do NOT want to count the Arrangements in which the a and b switch. We already did that in Step 1.
Answer:
(4! / 2!*2!) * (9 * 1 * 8 * 1 / 2!) =
6 * (72/2) =
6 * 36 = 216 Numbers that follow the constraints.
The Other Method is to 1st Choose which 2 Distinct Digits are going to be the Repeats that show up in the 4 Digit Number
1st) Selection/Choosing
You can Choose which 2 Distinct Digits that will Repeat in the Number in the following ways:
"9 choose 2" Ways = 36 ways
AND
2nd)ARRANGEMENT
For Each Combination of 2 Distinct Digits Chosen, We can Arrange them in the following ways:
4! / 2! * 2! ------ because 2 of the Elements will be Indistinguishable Elements (2a 2b 3 3) is the same Arrangment as (2b 2a 3 3)
36 * 6 = 216 Ways
-D-