document.write( "Question 232912: John is twice as old as his friend Peter. Peter is 5 years older than Alice. In 5 years, John will be three times as old as Alice. How old is Peter now? \n" ); document.write( "
Algebra.Com's Answer #283946 by dmf30633(3)\"\" \"About 
You can put this solution on YOUR website!
John is twice as old as his friend peter, J=2P
\n" ); document.write( "Peter is 5 years older than Alice, P=A+5
\n" ); document.write( "In 5 years John will be three times as old as Alice, J+5=3A \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "J=2P
\n" ); document.write( "P=A+5
\n" ); document.write( "J+5=3A
\n" ); document.write( "-------------
\n" ); document.write( "J=2(A+5)
\n" ); document.write( "J=2A+10
\n" ); document.write( "-------------
\n" ); document.write( "J+5=3A
\n" ); document.write( "2A+10+5=3A
\n" ); document.write( "10+5=A
\n" ); document.write( "15=A
\n" ); document.write( "-------------
\n" ); document.write( "P=A+5
\n" ); document.write( "P=15+5
\n" ); document.write( "P=20\r
\n" ); document.write( "\n" ); document.write( "So peter is 20, lets check our work. If peter is 20 then John must be 40. In 5 years John will be 45, which is 3 times as old as Alice who is 15.
\n" ); document.write( "
\n" );