2. The pages of materials for conducting a math club session are numbered. The last page is numbered 128. How many digits were needed to number all the pages?
2. For numbering the first nine pages, 9 numbers are needed.

For numbering pages from 10 to 99, 90 two-digit numbers are needed, which use $90 \times 2=180$ digits.

Let's find out how many three-digit numbers were used for numbering the pages. There will be $29(128-99=29)$. Determine how many digits were used to write 29 three-digit numbers $(29 \times 3=87)$. For numbering all the pages of the book, 276 digits were needed ($9+$ $+180+87=276)$.

Answer: 276 digits.