document.write( "Question 1097525: The ages of John and Mary total 27 years. Mary's age plus twice John's age is 40. How old is each person?\r
\n" ); document.write( "\n" ); document.write( "j+m = 27\r
\n" ); document.write( "\n" ); document.write( "m+2j = 40\r
\n" ); document.write( "\n" ); document.write( "Now I'm stuck...
\n" ); document.write( "

Algebra.Com's Answer #711955 by jim_thompson5910(35256)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Nice job so far on getting the correct equations set up. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Let's solve the first equation for j
\n" ); document.write( "Subtract 'm' from both sides to get...
\n" ); document.write( "j+m = 27
\n" ); document.write( "j+m-m = 27-m
\n" ); document.write( "j = 27-m\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Now we'll plug this into the second equation.
\n" ); document.write( "Essentially this means we replace every copy of 'j' with 27-m
\n" ); document.write( "m + 2j = 40
\n" ); document.write( "m + 2*( j ) = 40
\n" ); document.write( "m + 2*( 27-m ) = 40 ... replace j with 27-m\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Now we solve for m
\n" ); document.write( "m + 2*( 27-m ) = 40
\n" ); document.write( "m + 2*( 27 ) + 2*( -m ) = 40
\n" ); document.write( "m + 54 - 2m = 40
\n" ); document.write( "1m - 2m + 54 = 40
\n" ); document.write( "-1m + 54 = 40
\n" ); document.write( "-1m + 54 - 54 = 40 - 54
\n" ); document.write( "-1m = - 14
\n" ); document.write( "-1m/(-1) = - 14/(-1)
\n" ); document.write( "m = 14\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Use the value of m to get the value of j
\n" ); document.write( "j = 27-m
\n" ); document.write( "j = 27-14
\n" ); document.write( "j = 13\r
\n" ); document.write( "\n" ); document.write( "In summary, we get m = 14 and j = 13 which means that
\n" ); document.write( "Mary is 14 years old. John is 13 years old.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-------------------------------------------\r
\n" ); document.write( "\n" ); document.write( "Check:
\n" ); document.write( "Let's check the first equation
\n" ); document.write( "j+m = 27
\n" ); document.write( "13+14 = 27
\n" ); document.write( "27 = 27
\n" ); document.write( "that equation works\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Do the same for the second equation
\n" ); document.write( "m+2*j = 40
\n" ); document.write( "14+2*13 = 40
\n" ); document.write( "14+26 = 40
\n" ); document.write( "40 = 40
\n" ); document.write( "that equation works as well\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The answer has been confirmed.
\n" ); document.write( "
\n" ); document.write( "
\n" );