Sophie's favorite number is a two-digit number. If she reverses the digits, the result is $45$ less than her favorite number. The sum of the digits in her favorite number is $6$. What is Sophie's favorite number?