if you're looking for numbers up to 111,111,111, then the code is
numbersWithCrosssum[n_Integer] :=
Select[Range[111111111], Total@IntegerDigits[#] == n &]
numbersWithCrosssum[36]
or
Table[If[Total@IntegerDigits[i] == 36, i, {}], {i, 1, 111111111}] // Flatten
While this is the most idiomatic way of solving your problem, it is not the most efficient (re memory, time) because any implementation involving Select[ ] or Cases[ ] is horribly inefficient, but i will refuse to present a more efficient implementation. After all this solution does work and is the most idiomatic. This should be enough, bye.