On Friday, an ice cream shop sold 15 small chocolate cones and 25 X-large chocolate cones. It also sold 20 small vanilla cones and 50 X-large vanilla cones. The shop's chocolate sales for the day totaled $220 and its vanilla sales totaled $410. How much did the shop charge for a small cone versus an X-large cone.

### Watch This

Watch the first half of this video, until about 4:30.

James Sousa: Using a Matrix Equation to Solve a System of Equations

### Guidance

Look at the system:

Working backwards, this system can be written as the matrix equation:

where the variables, and are the components of a variable matrix for which we can solve using an inverse as shown:

In general, any system of linear equations in two variables can be written as a matrix equation that can then be solved using inverses. The coefficients of and form a matrix and the constants form a matrix as shown below.

If we let and then we could write the equation as . Now we can see what happens when we multiply both sides by :

So, we can find the matrix, , by “left multiplying” the matrix, , by .

#### Example A

Solve the system using matrices:

**
Solution:
**
First, let’s translate the system into a matrix equation:

Now we can “left multiply” both sides by the inverse of the coefficient matrix and solve:

Therefore, the solution is (2, -5).

#### Example B

Solve the system using matrices:

**
Solution:
**
First, let’s translate the system into a matrix equation:

Now we can “left multiply” both sides by the inverse of the coefficient matrix and solve:

Therefore, the solution is (-3, 7).

#### Example C

Solve the system using matrices:

**
Solution:
**
First, let’s translate the system into a matrix equation:

What happens this time when we try to find the inverse of the coefficient matrix?

The inverse does not exist so there is no unique solution to the system. Now we must use an alternative method to determine whether there are infinite solutions or no solution. Let’s use linear combination:

Therefore, there is no solution.

**
Intro Problem Revisit
**
The system of equations represented by this situation is

**
Solution:
**
First, let’s translate the system into a matrix equation:

Now we can “left multiply” both sides by the inverse of the coefficient matrix and solve:

Therefore, the shop charges $3 for a small cone and $7 for an X-large cone.

### Guided Practice

Solve the systems using matrices.

1.

2.

3.

#### Answers

1. Translate to a matrix equation and solve.

Therefore, the solution is (-8, 11).

2. First, rewrite the second equation as so the coefficient matrix can be identified.

However does not exist. Using linear combinations:

Therefore, there are infinite solutions.

3. Translate to a matrix equation and solve.

Therefore, the solution is .

### Practice

Solve the systems of linear equations using matrices.

- Tommy and Max start a lawn care business. They both charge by the hour for mowing and raking leaves. One week Tommy mowed lawns for 10 hours and raked leaves for 6 hours and earned a total of $114. In the same week, Max mowed lawns for 8 hours and raked leaves for 9 hours and earned a total of $118.50. Assuming they both charge the same rates for each of their services, how much do they charge per hour for mowing? For raking leaves?