Explanation:
The first column of matrix P must correspond to the first row of matrix I.
So if the first column in P is number of cherry pies, the first row in I must be the cost of cherry pie ingredients.
Fortunately, the table is already set up in the correct order. So all you have to do is write it as a matrix.
![P = \left[\begin{array}{cccc}3&4&1&1\\6&6&4&6\\2&2&5&4\end{array}\right]](https://img.qammunity.org/2020/formulas/mathematics/middle-school/le5c9j3y0sffzlrv0x211go8i8cu3i1y9b.png)
![I = \left[\begin{array}{cccc}3\\5\\2\\6\end{array}\right]](https://img.qammunity.org/2020/formulas/mathematics/middle-school/ochbs70gbrs02hr2ii55ezjds3z8ahy412.png)
To multiply the matrices, start with the first row of matrix P.
3 4 1 1
Multiply each value by the corresponding row of matrix I.
3×3 = 9, 4×5 = 20, 1×2 = 2, 1×6 = 6
Add the results.
9 + 20 + 2 + 6 = 37
This is the value in the first row and first column of matrix PI. If matrix I had another column, we would add another column to PI and repeat this step for the new column. Since matrix I has only one column, we're finished with this row of PI.
Here's the result:
![PI = \left[\begin{array}{cccc}3*3+4*5+1*2+1*6\\6*3+6*5+4*2+6*6\\2*3+2*5+5*2+4*6\end{array}\right] \\PI = \left[\begin{array}{cccc}9+20+2+6\\18+30+8+36\\6+10+10+24\end{array}\right]\\PI = \left[\begin{array}{cccc}37\\92\\50\end{array}\right]](https://img.qammunity.org/2020/formulas/mathematics/middle-school/qoovdcshl7fy9zro3uzohdw75m6et493wp.png)