t = tens digit
u = units (ones) digit
10t+u = the number
10u+t = the number with the digits reversed
The sum of the digits of a two digit number is 9.
t+u = 9
If 9 is added to the number, then the digits are reversed.
10t+u + 9 = 10u+t
So the system of equations is
Solve the first equation for for t
t+u = 9
t = 9-u
Substitute (9-u) for t in the second equation of the system:
10t+u+9 = 10u+t
10(9-u)+u+9 = 10u+(9-u)
90-10u+u+9 = 10u+9-u
99-9u = 9u+9
90 = 18u
5 = u
Substitut 5 for u in
t = 9-u
t = 9-5
t = 4
The number is 45.
Checking: We add 9 to 45 and get 54, which is the number
with the digits reversed.
Edwin