document.write( "Question 857547: Bill is three years older than Ted. In five years, the sum of their ages will be 47. How old are they now \n" ); document.write( "
Algebra.Com's Answer #516648 by JulietG(1812)\"\" \"About 
You can put this solution on YOUR website!
B = T + 3 [Bill is three years older than Ted.]
\n" ); document.write( "(B+5) + (T+5) = 47 [In five years, the sum of their ages will be 47.]
\n" ); document.write( "B + T = 37 (5 years and 5 years from the previous equation)
\n" ); document.write( "Substitute the value of B in the first equation into the third.
\n" ); document.write( "(T+3)+ T = 37
\n" ); document.write( "Add
\n" ); document.write( "2T + 3 = 37
\n" ); document.write( "Subtract 3 from each side
\n" ); document.write( "2T = 34
\n" ); document.write( "Divide each side by 2
\n" ); document.write( "T = 17
\n" ); document.write( "If Ted is 17, then Bill is 20.
\n" ); document.write( "In five years, Ted will be 22 and Bill will be 25.
\n" ); document.write( "22 + 25 = 47
\n" ); document.write( "
\n" );