document.write( "Question 159069This question is from textbook
\n" ); document.write( ": 2 years ago Paul was 7 times as old as Matt. 2 years from now, Paul will be 5 times as old is Matt. How old are Paul and Matt? I do have the answer, but can't come up with the correct equation.\r
\n" ); document.write( "\n" ); document.write( "TIA
\n" ); document.write( "

Algebra.Com's Answer #117167 by gonzo(654)\"\" \"About 
You can put this solution on YOUR website!
let P = paul's age now.
\n" ); document.write( "let M = Matt's age now.
\n" ); document.write( "2 years ago Paul was 7 times as old as Matt (was then is implied but not stated).
\n" ); document.write( "2 years ago Paul will be 5 times as old as Matt (will be then is implied but not stated).
\n" ); document.write( "equations become
\n" ); document.write( "P-2 = 7*(M-2) = 7*M - 14
\n" ); document.write( "P+2 = 5*(M+2) = 5*M + 10
\n" ); document.write( "adding 2 to both sides of the first equation and subtracting 2 from both sides of the second equation and they become
\n" ); document.write( "P = 7*M - 14 + 2 = 7*M - 12
\n" ); document.write( "P = 5*M + 10 - 2 = 5*M + 8
\n" ); document.write( "since they both equal the same thing they are equal to each other so they become
\n" ); document.write( "7*M - 12 = 5*M + 8
\n" ); document.write( "solving for M, equation becomes
\n" ); document.write( "2*M = 20
\n" ); document.write( "M = 10
\n" ); document.write( "substituting for M in the first equation gets
\n" ); document.write( "P = 7*M - 12
\n" ); document.write( "P = 7*10 - 12
\n" ); document.write( "P = 70 - 12
\n" ); document.write( "P = 58
\n" ); document.write( "substituting for P and M in the second equation gets
\n" ); document.write( "P = 5*M + 8
\n" ); document.write( "58 = 5*10 + 8
\n" ); document.write( "58 = 58
\n" ); document.write( "values for P and M are good.
\n" ); document.write( "answer is
\n" ); document.write( "P = 58
\n" ); document.write( "M = 10
\n" ); document.write( "
\n" );