As the digits appear in ascending order in the numbers, number of ways of forming a n-digit number using the 9 digits = 9Cn
Number of possible two-digit numbers which can be formed = 9C2 + 9C3 + 9C4 + 9C5 + 9C6 + 9C7 + 9C8 + 9C9
= 29 - (9C1 + 9C1)
= 512-(1+9) = 502