SOLUTION: Amy bought 3 burgers and 5 pies for 226 pesos. Ana bought 7 burgers and 2 hotdogs for 227 pesos. Leonardo bought 5 pies and 8 hotdogs for 322 pesos. How much would Donatello pay if

Algebra ->  Customizable Word Problem Solvers  -> Misc -> SOLUTION: Amy bought 3 burgers and 5 pies for 226 pesos. Ana bought 7 burgers and 2 hotdogs for 227 pesos. Leonardo bought 5 pies and 8 hotdogs for 322 pesos. How much would Donatello pay if      Log On

Ad: Over 600 Algebra Word Problems at edhelper.com


   



Question 899897: Amy bought 3 burgers and 5 pies for 226 pesos. Ana bought 7 burgers and 2 hotdogs for 227 pesos. Leonardo bought 5 pies and 8 hotdogs for 322 pesos. How much would Donatello pay if he will buy a burger, a pie, and a hotdog?
Found 2 solutions by richwmiller, ewatrrr:
Answer by richwmiller(17219) About Me  (Show Source):
You can put this solution on YOUR website!
3b+0*h+5p=226
7b+2h+0*p=227
0*b+8h+5p=322
3,0,5,226
7,2,0,227
0,8,5,322
divide row 1 by 3
1,0,5/3,226/3
7,2,0,227
0,8,5,322
add down (-7) *row 1 to row 2
1,0,5/3,226/3
0,2,-35/3,-901/3
0,8,5,322
add down (0) *row 1 to row 3
1,0,5/3,226/3
0,2,-35/3,-901/3
0,8,5,322
divide row 2 by 2
1,0,5/3,226/3
0,1,-35/6,-901/6
0,8,5,322
add down (-8) *row 2 to row 3
1,0,5/3,226/3
0,1,-35/6,-901/6
0,0,310/6,9140/6
divide row 3 by 155/3
1,0,5/3,226/3
0,1,-35/6,-901/6
0,0,1,13710/465
We now have the value for the last variable.
We will work our way up and get the other solutions.
add up (35/6) *row 3 to row 2
1,0,5/3,226/3
0,1,0,24354/1116
0,0,1,914/31
add up (-5/3) *row 3 to row 1
1,0,0,7308/279
0,1,0,1353/62
0,0,1,914/31
add up (0) *row 2 to row 1
1,0,0,50344/1922
0,1,0,1353/62
0,0,1,914/31
final
1,0,0,812/31
0,1,0,1353/62
0,0,1,914/31
1,0,0,812/31 = 26.1935484
0,1,0,1353/62 = 21.8225806
0,0,1,914/31 = 29.483871
"812/31","1353/62","914/31"
(812/31,1353/62,914/31)
26.1935484+21.8225806+29.483871=77.5
add all three to get 77.5 for one of each

Answer by ewatrrr(24785) About Me  (Show Source):
You can put this solution on YOUR website!
3b +5p = 226
7b + 2h = 227
5p + 8h = 322
b = 812/31, p = 914/31, h = 1353/62 Pesos
How much would Donatello pay if he will buy a burger, a pie, and a hotdog? add above
Solved by pluggable solver: Using Cramer's Rule to Solve Systems with 3 variables







First let A=%28matrix%283%2C3%2C3%2C5%2C0%2C7%2C0%2C2%2C0%2C5%2C8%29%29. This is the matrix formed by the coefficients of the given system of equations.


Take note that the right hand values of the system are 226, 227, and 322 and they are highlighted here:




These values are important as they will be used to replace the columns of the matrix A.




Now let's calculate the the determinant of the matrix A to get abs%28A%29=-310. To save space, I'm not showing the calculations for the determinant. However, if you need help with calculating the determinant of the matrix A, check out this solver.



Notation note: abs%28A%29 denotes the determinant of the matrix A.



---------------------------------------------------------



Now replace the first column of A (that corresponds to the variable 'x') with the values that form the right hand side of the system of equations. We will denote this new matrix A%5Bx%5D (since we're replacing the 'x' column so to speak).






Now compute the determinant of A%5Bx%5D to get abs%28A%5Bx%5D%29=-8120. Again, as a space saver, I didn't include the calculations of the determinant. Check out this solver to see how to find this determinant.



To find the first solution, simply divide the determinant of A%5Bx%5D by the determinant of A to get: x=%28abs%28A%5Bx%5D%29%29%2F%28abs%28A%29%29=%28-8120%29%2F%28-310%29=812%2F31



So the first solution is x=812%2F31




---------------------------------------------------------


We'll follow the same basic idea to find the other two solutions. Let's reset by letting A=%28matrix%283%2C3%2C3%2C5%2C0%2C7%2C0%2C2%2C0%2C5%2C8%29%29 again (this is the coefficient matrix).




Now replace the second column of A (that corresponds to the variable 'y') with the values that form the right hand side of the system of equations. We will denote this new matrix A%5By%5D (since we're replacing the 'y' column in a way).






Now compute the determinant of A%5By%5D to get abs%28A%5By%5D%29=-9140.



To find the second solution, divide the determinant of A%5By%5D by the determinant of A to get: y=%28abs%28A%5By%5D%29%29%2F%28abs%28A%29%29=%28-9140%29%2F%28-310%29=914%2F31



So the second solution is y=914%2F31




---------------------------------------------------------





Let's reset again by letting A=%28matrix%283%2C3%2C3%2C5%2C0%2C7%2C0%2C2%2C0%2C5%2C8%29%29 which is the coefficient matrix.



Replace the third column of A (that corresponds to the variable 'z') with the values that form the right hand side of the system of equations. We will denote this new matrix A%5Bz%5D






Now compute the determinant of A%5Bz%5D to get abs%28A%5Bz%5D%29=-6765.



To find the third solution, divide the determinant of A%5Bz%5D by the determinant of A to get: z=%28abs%28A%5Bz%5D%29%29%2F%28abs%28A%29%29=%28-6765%29%2F%28-310%29=1353%2F62



So the third solution is z=1353%2F62




====================================================================================

Final Answer:




So the three solutions are x=812%2F31, y=914%2F31, and z=1353%2F62 giving the ordered triple (812/31, 914/31, 1353/62)




Note: there is a lot of work that is hidden in finding the determinants. Take a look at this 3x3 Determinant Solver to see how to get each determinant.