document.write( "Question 1014530: David bought 3 DVDS and 4 books for $40 at a yard sale. Anna bought 1 DVD and 6 books for $18. How much did each DVD and book cost? \n" ); document.write( "
Algebra.Com's Answer #630799 by Zucchini(70)\"\" \"About 
You can put this solution on YOUR website!
So, set your variables.
\n" ); document.write( "Make \"d\" the cost of the each DVD and \"b\" the cost of each book.\r
\n" ); document.write( "\n" ); document.write( "Now, take your information and write an equation.\r
\n" ); document.write( "\n" ); document.write( "David bought 3 DVD's and 4 books, for a total of $40
\n" ); document.write( "David: 3d + 4b= 40\r
\n" ); document.write( "\n" ); document.write( "Anna bough 1 DVD and 6 books, for a total of $18
\n" ); document.write( "Anna: 1d + 6b = 18\r
\n" ); document.write( "\n" ); document.write( "Now, this is a system of equations, so put your equations close to each other so you can see them and then solve for either \"d\" or \"b\". I'm going to do \"d\", although it doesn't matter which one you solve for first. I'm going to solve by substitution.\r
\n" ); document.write( "\n" ); document.write( "3d + 4b = 40 ; 1d + 6b= 18\r
\n" ); document.write( "\n" ); document.write( "1d + 6b = 18 Move the \"6b\" to the other side:
\n" ); document.write( "d= 18 - 6b Now, plug this equation for d in the other equation:\r
\n" ); document.write( "\n" ); document.write( "3d + 4b = 40
\n" ); document.write( "3(18-6b) + 4b = 40 Now, distribute
\n" ); document.write( "54 - 18b + 4b = 40 Collect like terms
\n" ); document.write( "-14b = -14 Solve
\n" ); document.write( "b = 1, So, each book cost $1, but, we have to find out how much each DVD cost. So, plug in \"1\" for \"b\" in Anna's equation:\r
\n" ); document.write( "\n" ); document.write( "1d + 6b = 18
\n" ); document.write( "1d + 6(1) = 18
\n" ); document.write( "1d + 6 = 18
\n" ); document.write( "1d = 12
\n" ); document.write( "d = 12, So, each DVD cost $12.\r
\n" ); document.write( "\n" ); document.write( "Now, to check our work, plug in \"12\" for \"d\" in both equations and \"1\" for \"b\" and check to see if it works out.\r
\n" ); document.write( "\n" ); document.write( "3d + 4b = 40
\n" ); document.write( "3(12) + 4(1) = 40
\n" ); document.write( "40 = 40 this works\r
\n" ); document.write( "\n" ); document.write( "1d + 6b = 18
\n" ); document.write( "1(12) + 6(1) = 18
\n" ); document.write( "18 = 18 this works also\r
\n" ); document.write( "\n" ); document.write( "The answer: The books cost $1 each and the DVD's cost $12 each.
\n" ); document.write( "
\n" );