document.write( "Question 397646: 6 years ago bob was 4 times as old as Mary. In 4 years he will be twice as old as Mary. How old are they? \n" ); document.write( "
Algebra.Com's Answer #281756 by richard1234(7193)\"\" \"About 
You can put this solution on YOUR website!
Let b and m be Bob's and Mary's ages. Then,\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "b-6 = 4(m-6) --> b-6 = 4m - 24\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "b+4 = 2(m+4) --> b+4 = 2m + 8\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "This is essentially a system of equations that can be solved for b and m. Solving using any method (I used substitution), we get m = 11, b = 26, so Mary is 11 and Bob is 26.
\n" ); document.write( "
\n" );