suppose the one's digit is x, the ten's digit is y, then the number is 10y+x
when the digits are reversed, the new number is 10x+y
x+y=6 =>x=6-y
(10y+x)-(10x+y)=18
9y-9x=18
y-x=2
replace x with 6-y: y-(6-y)=2 =>y=4
x=6-4=2
so the original number is 42, the new number is 24
or the original number is 24, the new number is 42