document.write( "Question 1127524: Adrian, Nathan, and Brian bought lunch from the concession stand. Adrian paid $5.50 for burgers, fries and a drink; Nathan paid $4.00 for a burger and a drink; and Brian paid $4.25 for a burger and fries.
\n" );
document.write( "a) write three equations modeling the cost of their lunches using b, f, and d to represent the cost of a burger, fries, and a drink.
\n" );
document.write( "b)solve the system of equations to determine the cost of each food item.
\n" );
document.write( "i just need help setting it up \n" );
document.write( "
Algebra.Com's Answer #743939 by addingup(3677)![]() ![]() You can put this solution on YOUR website! Let burgers be x, fries y, and drink z \n" ); document.write( "solving by elimination: \n" ); document.write( "x + y + z = 5.50 = 11/2 multiply all times 2 to get rid of the fraction \n" ); document.write( "x + 0 + z = 4.00 = 4 \n" ); document.write( "x + y + 0 = 4.25 = 17/4 multiply all times 4 to get rid of the fraction \n" ); document.write( "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \n" ); document.write( "2x + 2y + 2z = 11 \n" ); document.write( "x + 0y + z = 4 \n" ); document.write( "4x + 4y + 0z = 17 \n" ); document.write( "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \n" ); document.write( "Swap rows 1 and 2: \n" ); document.write( "x + 0y + z = 4 \n" ); document.write( "2x + 2y + 2z = 11 \n" ); document.write( "4x + 4y + 0z = 17 \n" ); document.write( "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \n" ); document.write( "Multiply the first equation times -2 and add to the 2nd equation: \n" ); document.write( "-2x + -0y + -2z = -8 \n" ); document.write( "+2x + 2y + 2z = 11 \n" ); document.write( "--------------------- \n" ); document.write( "0x + 2y + 0z = 3 \n" ); document.write( "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \n" ); document.write( "now we have: \n" ); document.write( "x + z = 4 \n" ); document.write( "2y = 3 \n" ); document.write( "4x + 4y = 17 \n" ); document.write( "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \n" ); document.write( "multiply the firs equation times -4 and add to the 3rd equation: \n" ); document.write( "-4x + 0y -4z = -16 \n" ); document.write( "+ \n" ); document.write( "4x + 4y + 0z = 17 \n" ); document.write( "--------------------- \n" ); document.write( "0x + 4y + -4z = 1 \n" ); document.write( "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \n" ); document.write( "now we have: \n" ); document.write( "x + z = 4 \n" ); document.write( "2y = 3 \n" ); document.write( "4y - 4z = 1 \n" ); document.write( "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \n" ); document.write( "swap rows 2 and 3: \n" ); document.write( "x + z = 4 \n" ); document.write( "4y - 4z = 1 \n" ); document.write( "2y = 3; y = 3/2 \n" ); document.write( "Now that we know the value of y, let's find z: \n" ); document.write( "4y - 4z = 1 \n" ); document.write( "4(3/2) - 4z = 1 \n" ); document.write( "6-4z = 1 \n" ); document.write( "-4z = -5 \n" ); document.write( "z = 5/4 \n" ); document.write( "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ \n" ); document.write( "Now in the first equation solve for x by substituting y= 3/2 and z = 5/4. You can do this yourself, you should get 11/4 so that: \n" ); document.write( "burger = 11/4 = $2.75 \n" ); document.write( "fries = 3/2 = $1.50 \n" ); document.write( "drink = 5/4 = $1.25 \n" ); document.write( ": \n" ); document.write( "P.s. you can also solve this problem with a system of matrices using Cramer's Rule but you didn't say. \n" ); document.write( ": \n" ); document.write( "Happy learning!\r \n" ); document.write( " \n" ); document.write( " \n" ); document.write( "\n" ); document.write( " \n" ); document.write( " |