document.write( "Question 572054: If shelly gives John $5, they will have the same amount of money, If John gives shelly $5, she will have twice as much money as he will have. How much money does each have? \n" ); document.write( "
Algebra.Com's Answer #368278 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
let x = the amount of money that shelly has.
\n" ); document.write( "let y = the amount of money that john has.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "if shelly give john 5 dollars, then they both have the same amount of money.
\n" ); document.write( "this leads to the equation:
\n" ); document.write( "x-5 = y+5\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "if john give shelly 5 dollars, then shelly has twice as much money as john has.
\n" ); document.write( "this leads to the equation:
\n" ); document.write( "x+5 = 2(y-5)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "solve for x in each equation to get:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "x-5 = y+5 leads to:
\n" ); document.write( "x = y+10\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "x+5 = 2(y-5) leads to:
\n" ); document.write( "x+5 = 2y-10 which becomes:
\n" ); document.write( "x = 2y-15\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "you have 2 expressions that are equal to x.
\n" ); document.write( "they are:
\n" ); document.write( "x = y+10
\n" ); document.write( "x = 2y-15\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "you can set these expressions equal to each other to get:
\n" ); document.write( "y+10 = 2y-15
\n" ); document.write( "subtract y from both sides of this equation and add 15 to both sides of this equation to get:
\n" ); document.write( "y = 25\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "since x = 2y-15, this leads to:
\n" ); document.write( "x = 2(25)-15 which becomes:
\n" ); document.write( "x = 35\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the equation x = y + 10 leads to the same answer of:
\n" ); document.write( "y =35\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "you have:
\n" ); document.write( "x = 25
\n" ); document.write( "y = 35\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "shelly has 35 dollars and john has 25 dollars.
\n" ); document.write( "shelly gives john 5 dollars so shelly has 30 and john has 20 meaning:
\n" ); document.write( "shelly and john have the same amount of money.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "shelly has 35 dollars and john has 25 dollars.
\n" ); document.write( "john give shelly 5 dollars and shelly has 40 and john has 20 meaning:
\n" ); document.write( "shelly has twice as much money as john.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the problem has been satisfied so the answer is:
\n" ); document.write( "shelly has 35 dollas.
\n" ); document.write( "john has 25.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );