Let us say that:
T = numbers from 2-9Â
Z = numbers from 0-9Â
X = all except 1 (0, 2-9)
If a number begins with 1:Â
1 _ _Â
Then we can haveÂ
1 1 Z (10 numbers)Â
1 X 1 (9 numbers)Â
So a total of 19.Â
Now if a number starts with 2-9Â
T _ _Â
The second digit must be 1Â
T 1 _
but the third can be anything so
T 1 Z = 8 * 1 * 10 = 90 numbersÂ
Total = 99