document.write( "Question 507179: Pete is 1/3 of Brian’s age. Philip is 5 years older than Brian. The sum of their ages is 40. Find the age of each. \n" ); document.write( "
Algebra.Com's Answer #340363 by cougar12(1)\"\" \"About 
You can put this solution on YOUR website!
Pete=x
\n" ); document.write( "Phillip=y
\n" ); document.write( "Brian=z\r
\n" ); document.write( "\n" ); document.write( "x=1/3z
\n" ); document.write( "y=z+5\r
\n" ); document.write( "\n" ); document.write( "x+y+z=40
\n" ); document.write( "now change all to z\r
\n" ); document.write( "\n" ); document.write( "(1/3z)+(z+5)+z=40
\n" ); document.write( "
\n" ); document.write( "multiply each by 3 to cancel out the 1/3z
\n" ); document.write( "now you have\r
\n" ); document.write( "\n" ); document.write( "3z+15+3z=105
\n" ); document.write( "now subtract 15 you have\r
\n" ); document.write( "\n" ); document.write( "3z+3z=90
\n" ); document.write( "now divide all by 3\r
\n" ); document.write( "\n" ); document.write( "z+z=30
\n" ); document.write( "2z=30
\n" ); document.write( "z=15\r
\n" ); document.write( "\n" ); document.write( "x=1/3z
\n" ); document.write( "x=1/3(15)
\n" ); document.write( "x=5\r
\n" ); document.write( "\n" ); document.write( "y=z+5
\n" ); document.write( "y=15+5
\n" ); document.write( "y=20\r
\n" ); document.write( "\n" ); document.write( "x+y+z=40
\n" ); document.write( "5+20+15=40
\n" ); document.write( "
\n" );