document.write( "Question 150764: Ernest spent a total of $64 for a pair of jeans and a shirt. The jeans cost $6 more than the shirt. What was the cost of the jeans? \n" ); document.write( "
Algebra.Com's Answer #110682 by mangopeeler07(462)\"\" \"About 
You can put this solution on YOUR website!
s=price of shirt
\n" ); document.write( "j=price of jeans\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "s+j=64------------------------------Ernest spent a total of $64 for a pair of jeans and a shirt. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "j=s+6-------------------------------The jeans cost $6 more than the shirt.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Plug in s+6 for j in the first equation:
\n" ); document.write( "s+j=64
\n" ); document.write( "becomes
\n" ); document.write( "s+s+6=64\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Combine like terms
\n" ); document.write( "2s+6=64\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Subtract 6 from both sides
\n" ); document.write( "2s=58\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Divide both sides by 2
\n" ); document.write( "s=29\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "s=price of shirt
\n" ); document.write( "s+6=price of jeans\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Answer:
\n" ); document.write( "shirt=$29
\n" ); document.write( "*jeans=$35*
\n" ); document.write( "
\n" );