document.write( "Question 365685: the ages of john and mary is 27 years. Mary's age plus twice john's age is 40. How old is each person? \n" ); document.write( "
Algebra.Com's Answer #260660 by robertb(5830)\"\" \"About 
You can put this solution on YOUR website!
j+m = 27, this means m = 27-j.
\n" ); document.write( "also it is given that m+2j = 40.
\n" ); document.write( "Hence 27-j+2j = 40 or j = 13, and m = 14. Therefore john is 13 yrs old, and mary is 14 yrs old.
\n" ); document.write( "
\n" ); document.write( "
\n" );