Given number :abcde
∵a is the first digit, so a≠0
∴ Required ways = total combination of 3 different digits from 1 to 9 (say 2,5,8) out of which one digit will be repeated thrice (i.e. 25558).
[each combinnations will give only one way]
⇒ Total required ways =9C3×1=9C3=84