Joãozinho wrote the numbers from 1 to 100000 on the board, then replaced each number by the sum of its digits and repeated this process until he obtained a list of 100000 single-digit numbers. For example, starting with the number 7234, we get and .
(a) What number replaced the number 98765?
(b) How many times does the number 8 appear in the final list?
(c) Which number appears the most times?