document.write( "Question 1209008: 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?
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #847568 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "For the original number we have
\n" ); document.write( "t = tens digit
\n" ); document.write( "u = units digit
\n" ); document.write( "That constructs 10t+u\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "For instance if the number is 23 then t = 2 and u = 3.
\n" ); document.write( "10t+u = 10*2+3 = 23.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The digits of Sophie's mystery number add to 6.
\n" ); document.write( "t+u = 6 which solves to u = 6-t
\n" ); document.write( "This will be useful in a substitution later.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "10u+t is the result of reversing the digits. This is 45 less than her favorite number.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "swapped = original - 45
\n" ); document.write( "10u + t = 10t+u - 45
\n" ); document.write( "10(u) + t = 10t+u - 45
\n" ); document.write( "10(6-t) + t = 10t+6-t - 45
\n" ); document.write( "60-10t+t = 10t+6-t-45
\n" ); document.write( "60-9t = 9t-39
\n" ); document.write( "-9t-9t = -39-60
\n" ); document.write( "-18t = -99
\n" ); document.write( "t = -99/(-18)
\n" ); document.write( "t = 5.5
\n" ); document.write( "We do not get a whole number result for the tens digit, so there must be a typo somewhere in your question.
\n" ); document.write( "Perhaps the digits add to something else other than 6?
\n" ); document.write( "Or maybe the \"45\" should be another value?
\n" ); document.write( "I would ask your teacher for clarification.
\n" ); document.write( "
\n" ); document.write( "
\n" );