5.1. How many four-digit numbers exist that contain the digit 9 in their notation, immediately followed by the digit 5?
Answer: 279.

Solution. For numbers of the form $95 * *$, the last two digits can be anything - there are $10 \cdot 10=100$ such numbers, and for numbers of the form $* 95 *$ and $* * 95$, the first digit cannot be 0, so there are $10 \cdot 9=90$ of each. The number 9595 was counted twice, so we get 279 numbers.