Inactive Tutor answered 11/30/15
Tutor
New to Wyzant
Blake,
I hope this is time to do you some good. Two of the equations are straight
forward from the info provided. The third is only found by manipulating some
of the info.
r + l + i = 150 the number of each type of flower added together must equal the total number of flowers.
2.5r + 4l + 2i = 370 the cost of each type of flower must add up to the total budget
The third equation as given in the problem would be r = 2(l + i). But to line things up
for the matrix, we manipulate it to be:
r - 2l - 2i = 0
So our matrix equation becomes:
1 1 1 r 150
2.5 4 2 * l = 370
1 -2 -2 i 0
or
A * X = B
AX = B can of course be manipulated to X = A-1B, where X is our matrix of values
for each variable. Now we use an inverse matrix calculator to find:
A-1 * B = X
2/3 0 1/3 150 100 roses
-7/6 1/2 -1/12 370 10 lilies
3/2 -1/2 -1/4 0 40 irises
I'm sorry there is no good way to show a matrix in this editor. I hope it comes out legible.