How to approach the problem?

I was going through a problem
Represent N as a sum of minimum no ending with 9.
For eg 28=19+9, 27=9+9+9.
Please help me out in how to approach this problem