Problem 2. The number 509 has a sum of digits of 14, since $5+0+9=14$. Determine the largest three-digit number whose sum of digits is 12 and find the smallest three-digit number whose sum of digits is 21? Determine the difference between these two numbers.