A number consists of two digits whose sum is 10. If 18 is subtracted form the number, its digits are reversed. Find the number.