document.write( "Question 1196352: In four years, John's age will be the same as Peter's age now. In two years, Peter's age will be twice as John's age. How old is Peter now? \n" ); document.write( "
Algebra.Com's Answer #829140 by ikleyn(52781)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "In four years, John's age will be the same as Peter's age now.
\n" ); document.write( "In two years, Peter's age will be twice as John's age. How old is Peter now?
\n" ); document.write( "~~~~~~~~~~~~~~~~\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "Let x be the Peter's age, in years (the quantity under the question).\r\n" );
document.write( "\r\n" );
document.write( "First sentence says that John is 4 years younger than Peter;\r\n" );
document.write( "so, John's age today is (x-4) years.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "In two years, their ages will be (x+2) for Peter and ((x-4)+2) = (x-2) for John.\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Next, from the problem we have this equation\r\n" );
document.write( "\r\n" );
document.write( "    x+2 = 2*(x-2)       (In two years, Peter's age will be twice as John's age)\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The setup is done. Now to the solution.\r\n" );
document.write( "\r\n" );
document.write( "To solve the equation, simplify it step by step\r\n" );
document.write( "\r\n" );
document.write( "    x + 2 = 2x - 4\r\n" );
document.write( "\r\n" );
document.write( "    2 + 4 = 2x - x\r\n" );
document.write( "\r\n" );
document.write( "      6   =   x\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "ANSWER.  Peter is 6 years old now.\r\n" );
document.write( "
\r
\n" ); document.write( "\n" ); document.write( "Solved.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );