document.write( "Question 252128: Crystallina spent her entire $ 20 weekly allowance on books and candy last week. This week she did the same, but she spent 50 % more on candy and 12.5 % less on books.How much did she spend on candy this week? \n" ); document.write( "
Algebra.Com's Answer #183901 by dabanfield(803)\"\" \"About 
You can put this solution on YOUR website!
Crystallina spent her entire $ 20 weekly allowance on books and candy last week. This week she did the same, but she spent 50 % more on candy and 12.5 % less on books.How much did she spend on candy this week?\r
\n" ); document.write( "\n" ); document.write( "Let x be the amount she spent the first week on books and y the amount on candy. \r
\n" ); document.write( "\n" ); document.write( "Then:\r
\n" ); document.write( "\n" ); document.write( "x + y = 20 or
\n" ); document.write( "y = 20 - x\r
\n" ); document.write( "\n" ); document.write( "The second week then we have:\r
\n" ); document.write( "\n" ); document.write( ".875x + 1.5y = 20\r
\n" ); document.write( "\n" ); document.write( "Substituting 20-x for y in the second equation we have:\r
\n" ); document.write( "\n" ); document.write( ".875*x + 1.5*(20 - x) = 20 \r
\n" ); document.write( "\n" ); document.write( "Solve for x and then calculate y = 20 - x.
\n" ); document.write( "
\n" ); document.write( "
\n" );