document.write( "Question 841330: X times age of John is equal to Y times age of Alice. Difference between their ages is M. John is older to Alice. Find their ages. \r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #506939 by ankor@dixie-net.com(22740)\"\" \"About 
You can put this solution on YOUR website!
X times age of John is equal to Y times age of Alice.
\n" ); document.write( " Difference between their ages is M. John is older to Alice.
\n" ); document.write( " Find their ages.
\n" ); document.write( "j = John's age
\n" ); document.write( "a = Alice's age
\n" ); document.write( ":
\n" ); document.write( "\"X times age of John is equal to Y times age of Alice.\"
\n" ); document.write( "jx = ay
\n" ); document.write( ":
\n" ); document.write( "\"Difference between their ages is M. John is older to Alice.
\n" ); document.write( "j - a = m
\n" ); document.write( "j = a + m
\n" ); document.write( "a = j - m
\n" ); document.write( "Replace j in the 1st equation with (a+m)
\n" ); document.write( "x(a+m) = ay
\n" ); document.write( "ax + xm = ay
\n" ); document.write( "ax - ay = -xm
\n" ); document.write( "Factor out a
\n" ); document.write( "a(x-y) = -xm
\n" ); document.write( "a = \"-%28xm%29%2F%28%28x-y%29%29\" is Alice's age
\n" ); document.write( ":
\n" ); document.write( "Find John's age
\n" ); document.write( "Replace a with (j-m) in the 1st equation
\n" ); document.write( "jx = y(j-m)
\n" ); document.write( "jx = jy - ym
\n" ); document.write( "jx - jy = -ym
\n" ); document.write( "Factor out j
\n" ); document.write( "j(x-y) = -ym
\n" ); document.write( "j = \"-%28ym%29%2F%28%28x-y%29%29\" is John's age
\n" ); document.write( "
\n" );