Hi nadeemoidu,
you are right, thanks.
| Numbers | Methods Description | Number Formats | Total outcomes |
| 1-9 | Only unit place digit is 5 | 5 | 1 |
| 10-99 | (i) Unit place digit is 5 = 8*1 = 8 (Tenth place cannot contains 0 and 5) (ii) Tenth place digit is 5 = 1*9 = 9 (iii) Both digits are 5 = 1*1 = 1 | $5 5* 55 | 18 |
| 100-999 | (i) Unit place digit is 5 = 8*9*1 = 72 (Hundred place must not 0 & 5) (ii) Tenth place digit is 5 = 8*1*9 = 72 (Hundred place must not 0 & 5) (iii) Hundred place has 5 = 1*9*9 =81 (iv) Any two digits are 5 = (2* 1*1*9 + 8*1*1) = 26 (v) All three digits are 5 = 1 | $*5 $5* 5** 55*,5*5,$55 555 | 252 |
| | Total outcomes | | 271 |
When we say how many times we write '5' then in
A. 10-99 (iii) we have to add one more count (as both digits are 5)
B. 100-999 (iv) case we have to add 26 more count (as both digits are 5)
C. 100-999 (v) case we should add two more count (all three digits are 5)
Total count added = 1+26+2 = 29
So the correct answer = 271+29 = 300