document.write( "Question 1008107: A library is having a book sale to raise money. Hardcover books cost $4 each and paperback books cost $2 each. A person spends $26 for 8 books. How many hardcover books did she purchase? \n" ); document.write( "
Algebra.Com's Answer #623870 by ikleyn(52786)\"\" \"About 
You can put this solution on YOUR website!
.
\n" ); document.write( "
\r\n" );
document.write( " x +  y = 8,    (1)\r\n" );
document.write( "\r\n" );
document.write( "4x + 2y = 26,   (2)\r\n" );
document.write( "\r\n" );
document.write( "where x and y are the numbers of hardcover and softcover books respectively.\r\n" );
document.write( "\r\n" );
document.write( "To solve, multiply the equation (1) by 2 (both sides) and then distract it from the equation (2). You will get\r\n" );
document.write( "\r\n" );
document.write( "4x - 2x = 26 - 16,   or\r\n" );
document.write( "\r\n" );
document.write( "2x = 10,   or   x = 5 - the number of hardcover books purchased.\r\n" );
document.write( "\r\n" );
document.write( "Then from the equation (1) you get y = 3.\r\n" );
document.write( "\r\n" );
document.write( "Check. 4*x + 2*3 = 4*5 + 2*3 = 26. OK.\r\n" );
document.write( "

\n" ); document.write( "
\n" ); document.write( "
\n" );