document.write( "Question 798330: bill is three times as old as pedro. eighteen years from now, bill will be twice as old as pedro will be then. find the present age of both bill and pedro. \n" ); document.write( "
Algebra.Com's Answer #482135 by richwmiller(17219)\"\" \"About 
You can put this solution on YOUR website!
b=3p
\n" ); document.write( "b+18=2(p+18)
\n" ); document.write( "b+18=2p+36
\n" ); document.write( "b=2p+18
\n" ); document.write( "3p=2p+18
\n" ); document.write( "p=18
\n" ); document.write( "b=3*18=54\r
\n" ); document.write( "\n" ); document.write( "check
\n" ); document.write( "b+18=2(p+18)
\n" ); document.write( "54+18=2*(36)
\n" ); document.write( "72=72
\n" ); document.write( "ok\r
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );