document.write( "Question 364810: John is now 3 times as old as his brother Sam. In 5 years, John will be twice as old as Sam will be then. What are their present ages? \n" ); document.write( "
Algebra.Com's Answer #260081 by robertb(5830)\"\" \"About 
You can put this solution on YOUR website!
j = 3s,
\n" ); document.write( "j+5 = 2(s+5). By direct substitution,
\n" ); document.write( "3s+5 = 2s+10,
\n" ); document.write( "3s-2s = 10-5,
\n" ); document.write( "s = 5, the age of sam, while,
\n" ); document.write( "j = 3*5 = 15, the age of john.
\n" ); document.write( "
\n" );