Here is an algebraic solution:
A two digit positive integer can be expressed as 10 times the tens digit plus the ones digit. For example, 38 = 10(3) + 8.
Let x = tens digit of the number
y = ones digit
Then x + y = 9
10y + x = 10x + y + x + y
Simplifying, we have x + y = 9
10x = 8y
Since x+y = 9, y = 9-x
So, 10x = 8(9-x)
10x = 72 - 8x
18x = 72
x = 4 and y = 9-x = 5
The number is 45.