The largest sum is 18 for the number 99. The largest remainder can be 17, but in fact the remainder is 9:

For the numbers 98 and 89 the sum is 17 and the remainders are 13 and 5.

For 79 the sum is 16 and the remainder is 15. This is the largest remainder that can be obtained.