document.write( "Question 1062770: Sam is 4 years older than sally.if sally is x years old and the sum of their ages is 40,how old are they? \n" ); document.write( "
Algebra.Com's Answer #677760 by math_helper(2461)\"\" \"About 
You can put this solution on YOUR website!
Sally is x years old —> Sam is x+4 years old.
\n" ); document.write( "Also
\n" ); document.write( "\"+%28x%29+%2B+%28x%2B4%29+=+40+\"
\n" ); document.write( "\"++2x+%2B+4+=+40+\"
\n" ); document.write( "\"++2x+=+36+\"
\n" ); document.write( "\"+++x+=+18+\" —> \"+x%2B4+=+18%2B4+=+22+\"\r
\n" ); document.write( "\n" ); document.write( "—\r
\n" ); document.write( "\n" ); document.write( "Ans: Sally is \"+highlight%2818%29+\", and Sam is \"highlight%2822%29\" , years old
\n" ); document.write( " —
\n" ); document.write( "Check:
\n" ); document.write( " 18+22 = 40 (ok)
\n" ); document.write( " 22 = Sam's age = 18+4 (= Sally's age + 4, so also ok)
\n" ); document.write( "
\n" );