Answer:
The matrix equation would be
,
and the resulting matrix is
![\left[\begin{array}{ccc}6\\4\\3\end{array}\right]](https://img.qammunity.org/2019/formulas/mathematics/high-school/63tn5wq0m12lhr9xrl0saahx9evnpsusdy.png)
Explanation:
We first start with what is called the coefficient matrix; it contains the coefficients of the variables in the system of equations.
The coefficients of the first equation are 1, 1 and 1; this will be the first row of the matrix.
The coefficients of the second equation are 7, 15 and 22; this will be the second row of the matrix.
The coefficients of the third equation are 1, 0 and -1 (0 because there is no variable m in the equation); this will be the third row of the matrix, and gives us the coefficient matrix
![\left[\begin{array}{ccc}1&1&1\\7&15&22\\1&0&-1\end{array}\right]](https://img.qammunity.org/2019/formulas/mathematics/high-school/kpxcrbj1auq1ckhyeb2zo4ed331t12xj9v.png)
The next matrix in the equation will be the variable matrix. It will contain the variables for the equation; for ours, it is s, m and l:
![\left[\begin{array}{ccc}s\\m\\l\end{array}\right]](https://img.qammunity.org/2019/formulas/mathematics/high-school/8zkor4msl2lh0r7ex9ktrytfjz26rri3jh.png)
The last matrix in our equation will be the constant matrix, which has the values after the equals in each equation:
![\left[\begin{array}{ccc}13\\168\\3\end{array}\right]](https://img.qammunity.org/2019/formulas/mathematics/high-school/evwnmtwb9nrlirk0yddwoo21kiqcydzz2b.png)
This gives us the equation:
![\left[\begin{array}{ccc}1&1&1\\7&15&22\\1&0&-1\end{array}\right] * \left[\begin{array}{ccc}s\\m\\l\end{array}\right] =\left[\begin{array}{ccc}13\\168\\3\end{array}\right]](https://img.qammunity.org/2019/formulas/mathematics/high-school/66dn3y4httw3jb9r12ftq9uis1nl2v853d.png)
To solve this, we find the inverse of the coefficient matrix and multiply it by the constant matrix:
![\left[\begin{array}{ccc}s\\m\\l\end{array}\right] =\left[\begin{array}{ccc}1&1&1\\7&15&22\\1&0&-1\end{array}\right] ^(-1) * \left[\begin{array}{ccc}13\\168\\3\end{array}\right]](https://img.qammunity.org/2019/formulas/mathematics/high-school/lw6lhi9nd3rv40w5bwhqxhdfk8ghz8ljgx.png)
Using a graphing calculator to perform this, we get the result
![\left[\begin{array}{ccc}6\\4\\3\end{array}\right]](https://img.qammunity.org/2019/formulas/mathematics/high-school/63tn5wq0m12lhr9xrl0saahx9evnpsusdy.png)
This means the small contains 6 packages; medium contains 4; and large contains 3.