# 9.9: Solving Systems with Cramer's Rule

- Page ID
- 114085

\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

\( \newcommand{\Span}{\mathrm{span}}\)

\( \newcommand{\id}{\mathrm{id}}\)

\( \newcommand{\Span}{\mathrm{span}}\)

\( \newcommand{\kernel}{\mathrm{null}\,}\)

\( \newcommand{\range}{\mathrm{range}\,}\)

\( \newcommand{\RealPart}{\mathrm{Re}}\)

\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

\( \newcommand{\Argument}{\mathrm{Arg}}\)

\( \newcommand{\norm}[1]{\| #1 \|}\)

\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)

\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)

\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vectorC}[1]{\textbf{#1}} \)

\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

In this section, you will:

- Evaluate 2 × 2 determinants.
- Use Cramer’s Rule to solve a system of equations in two variables.
- Evaluate 3 × 3 determinants.
- Use Cramer’s Rule to solve a system of three equations in three variables.
- Know the properties of determinants.

We have learned how to solve systems of equations in two variables and three variables, and by multiple methods: substitution, addition, Gaussian elimination, using the inverse of a matrix, and graphing. Some of these methods are easier to apply than others and are more appropriate in certain situations. In this section, we will study two more strategies for solving systems of equations.

### Evaluating the Determinant of a 2×2 Matrix

A determinant is a real number that can be very useful in mathematics because it has multiple applications, such as calculating area, volume, and other quantities. Here, we will use determinants to reveal whether a matrix is invertible by using the entries of a square matrix to determine whether there is a solution to the system of equations. Perhaps one of the more interesting applications, however, is their use in cryptography. Secure signals or messages are sometimes sent encoded in a matrix. The data can only be decrypted with an invertible matrix and the determinant. For our purposes, we focus on the determinant as an indication of the invertibility of the matrix. Calculating the determinant of a matrix involves following the specific patterns that are outlined in this section.

The **determinant** of
a 2×22×2 matrix, given

A=[acbd]A=[ abcd ]

is defined as

Notice the change in notation. There are several ways to indicate the determinant, including det(A)det(A) and replacing the brackets in a matrix with straight lines, |A|.| A |.

**EXAMPLE 1**

#### Finding the Determinant of a 2 × 2 Matrix

Find the determinant of the given matrix.

A=[5−623]A=[ 52−63 ]

**Answer**-

### Using Cramer’s Rule to Solve a System of Two Equations in Two Variables

We will now introduce a final method for solving systems of equations that uses determinants. Known as Cramer’s Rule, this technique dates back to the middle of the 18th century and is named for its innovator, the Swiss mathematician Gabriel Cramer (1704-1752), who introduced it in 1750 in Introduction à l'Analyse des lignes Courbes algébriques. Cramer’s Rule is a viable and efficient method for finding solutions to systems with an arbitrary number of unknowns, provided that we have the same number of equations as unknowns.

Cramer’s Rule will give us the unique solution to a system of equations, if it exists. However, if the system has no solution or an infinite number of solutions, this will be indicated by a determinant of zero. To find out if the system is inconsistent or dependent, another method, such as elimination, will have to be used.

To understand Cramer’s Rule, let’s look closely at how we solve systems of linear equations using basic row operations. Consider a system of two equations in two variables.

a1x+b1y=c1(1)a2x+b2y=c2(2)a1x+b1y=c1(1)a2x+b2y=c2(2)

We eliminate one variable using row operations and solve for the other. Say that we wish to solve for x.x. If equation (2) is multiplied by the opposite of the coefficient of yy in equation (1), equation (1) is multiplied by the coefficient of yy in equation (2), and we add the two equations, the variable yy will be eliminated.

b2a1x+b2b1y=b2c1−b1a2x−b1b2y=−b1c2Multiply R1by b2Multiply R2by−b1________________________________________________________ b2a1x−b1a2x=b2c1−b1c2b2a1x+b2b1y=b2c1Multiply R1by b2−b1a2x−b1b2y=−b1c2Multiply R2by−b1________________________________________________________ b2a1x−b1a2x=b2c1−b1c2

Now, solve for x.x.

b2a1x−b1a2x=b2c1−b1c2x(b2a1−b1a2)=b2c1−b1c2 x=b2c1−b1c2b2a1−b1a2=∣∣∣c1c2b1b2∣∣∣∣∣∣a1a2b1b2∣∣∣b2a1x−b1a2x=b2c1−b1c2x(b2a1−b1a2)=b2c1−b1c2 x=b2c1−b1c2b2a1−b1a2=| c1b1c2b2 || a1b1a2b2 |

Similarly, to solve for y,y, we will eliminate x.x.

a2a1x+a2b1y=a2c1−a1a2x−a1b2y=−a1c2Multiply R1by a2Multiply R2by−a1________________________________________________________a2b1y−a1b2y=a2c1−a1c2a2a1x+a2b1y=a2c1Multiply R1by a2−a1a2x−a1b2y=−a1c2Multiply R2by−a1________________________________________________________a2b1y−a1b2y=a2c1−a1c2

Solving for yy gives

a2b1y−a1b2y=a2c1−a1c2y(a2b1−a1b2)=a2c1−a1c2 y=a2c1−a1c2a2b1−a1b2=a1c2−a2c1a1b2−a2b1=∣∣∣a1a2c1c2∣∣∣∣∣∣a1a2b1b2∣∣∣a2b1y−a1b2y=a2c1−a1c2y(a2b1−a1b2)=a2c1−a1c2 y=a2c1−a1c2a2b1−a1b2=a1c2−a2c1a1b2−a2b1=|a1c1a2c2||a1b1a2b2|

Notice that the denominator for both xx and yy is the determinant of the coefficient matrix.

We can use these formulas to solve for xx and y,y, but Cramer’s Rule also introduces new notation:

- D:D: determinant of the coefficient matrix
- Dx:Dx: determinant of the numerator in the solution
of xx
x=DxDx=DxD

- Dy:Dy: determinant of the numerator in the solution
of yy
y=DyDy=DyD

The key to Cramer’s Rule is replacing the variable column of interest with the constant column and calculating the determinants. We can then express xx and yy as a quotient of two determinants.

**Cramer’s Rule** is a method that uses
determinants to solve systems of equations that have the same
number of equations as variables.

Consider a system of two linear equations in two variables.

a1x+b1y=c1a2x+b2y=c2a1x+b1y=c1a2x+b2y=c2

The solution using Cramer’s Rule is given as

x=DxD=∣∣∣c1c2b1b2∣∣∣∣∣∣a1a2b1b2∣∣∣,D≠0;y=DyD=∣∣∣a1a2c1c2∣∣∣∣∣∣a1a2b1b2∣∣∣,D≠0.x=DxD=| c1b1c2b2 || a1b1a2b2 |,D≠0;y=DyD=| a1c1a2c2 || a1b1a2b2 |,D≠0.

If we are solving for x,x, the xx column is replaced with the constant column. If we are solving for y,y, the yy column is replaced with the constant column.

**EXAMPLE 2**

#### Using Cramer’s Rule to Solve a 2 × 2 System

Solve the following 2×22×2 system using Cramer’s Rule.

12x+3y=15 2x−3y=1312x+3y=15 2x−3y=13

**Answer**-

Use Cramer’s Rule to solve the 2 × 2 system of equations.

x+2y=−11−2x+y=−13 x+2y=−11−2x+y=−13

### Evaluating the Determinant of a 3 × 3 Matrix

Finding the determinant of a 2×2 matrix is straightforward, but
finding the determinant of a 3×3 matrix is more complicated. One
method is to augment the 3×3 matrix with a repetition of the first
two columns, giving a 3×5 matrix. Then we calculate the sum of the
products of entries *down* each of the three diagonals (upper left to
lower right), and subtract the products of
entries *up* each of the
three diagonals (lower left to upper right). This is more easily
understood with a visual and an example.

Find the determinant of the 3×3 matrix.

A=⎡⎣⎢a1a2a3b1b2b3c1c2c3⎤⎦⎥A=[ a1b1c1a2b2c2a3b3c3 ]

- Augment AA with the first two columns.
det(A)=∣∣∣∣a1a2a3b1b2b3c1c2c3∣∣∣∣a1a2a3b1b2b3∣∣∣∣det(A)=| a1b1c1a2b2c2a3b3c3|a1a2a3b1b2b3 |

- From upper left to lower right: Multiply the entries down the first diagonal. Add the result to the product of entries down the second diagonal. Add this result to the product of the entries down the third diagonal.
- From lower left to upper right: Subtract the product of entries up the first diagonal. From this result subtract the product of entries up the second diagonal. From this result, subtract the product of entries up the third diagonal.

The algebra is as follows:

|A|=a1b2c3+b1c2a3+c1a2b3−a3b2c1−b3c2a1−c3a2b1| A |=a1b2c3+b1c2a3+c1a2b3−a3b2c1−b3c2a1−c3a2b1

**EXAMPLE 3**

#### Finding the Determinant of a 3 × 3 Matrix

Find the determinant of the 3 × 3 matrix given

A=⎡⎣⎢0342−10111⎤⎦⎥A=[ 0213−11401 ]

**Answer**-

Find the determinant of the 3 × 3 matrix.

det(A)=∣∣∣∣111−31−2713∣∣∣∣det(A)=| 1−371111−23 |

**Can we use the same method to find the determinant of a
larger matrix?**

*No, this method only works
for 2×22×2 and 3×33×3 matrices. For larger
matrices it is best to use a graphing utility or computer
software.*

### Using Cramer’s Rule to Solve a System of Three Equations in Three Variables

Now that we can find the determinant of a 3 × 3 matrix, we can apply Cramer’s Rule to solve a system of three equations in three variables. Cramer’s Rule is straightforward, following a pattern consistent with Cramer’s Rule for 2 × 2 matrices. As the order of the matrix increases to 3 × 3, however, there are many more calculations required.

When we calculate the determinant to be zero, Cramer’s Rule gives no indication as to whether the system has no solution or an infinite number of solutions. To find out, we have to perform elimination on the system.

Consider a 3 × 3 system of equations.

x=DxD,y=DyD,z=DzD,D≠0x=DxD,y=DyD,z=DzD,D≠0

where

If we are writing the determinant Dx,Dx, we replace the xx column with the constant column. If we are writing the determinant Dy,Dy, we replace the yy column with the constant column. If we are writing the determinant Dz,Dz, we replace the zz column with the constant column. Always check the answer.

**EXAMPLE 4**

#### Solving a 3 × 3 System Using Cramer’s Rule

Find the solution to the given 3 × 3 system using Cramer’s Rule.

x+y−z=63x−2y+z=−5x+3y−2z=14x+y−z=63x−2y+z=−5x+3y−2z=14

**Answer**-

Use Cramer’s Rule to solve the 3 × 3 matrix.

x−3y+7z=13x+y+z=1x−2y+3z=4x−3y+7z=13x+y+z=1x−2y+3z=4

**EXAMPLE 5**

#### Using Cramer’s Rule to Solve an Inconsistent System

Solve the system of equations using Cramer’s Rule.

3x−2y=4 (1)6x−4y=0 (2)3x−2y=4 (1)6x−4y=0 (2)

**Answer**-

**EXAMPLE 6**

#### Use Cramer’s Rule to Solve a Dependent System

Solve the system with an infinite number of solutions.

x−2y+3z=03x+y−2z=02x−4y+6z=0(1)(2)(3)x−2y+3z=0(1)3x+y−2z=0(2)2x−4y+6z=0(3)

**Answer**-

### Understanding Properties of Determinants

There are many properties of determinants. Listed here are some properties that may be helpful in calculating the determinant of a matrix.

- If the matrix is in upper triangular form, the determinant equals the product of entries down the main diagonal.
- When two rows are interchanged, the determinant changes sign.
- If either two rows or two columns are identical, the determinant equals zero.
- If a matrix contains either a row of zeros or a column of zeros, the determinant equals zero.
- The determinant of an inverse matrix A−1A−1 is the reciprocal of the determinant of the matrix A.A.
- If any row or column is multiplied by a constant, the determinant is multiplied by the same factor.

**EXAMPLE 7**

#### Illustrating Properties of Determinants

Illustrate each of the properties of determinants.

**Answer**-

**EXAMPLE 8**

#### Using Cramer’s Rule and Determinant Properties to Solve a System

Find the solution to the given 3 × 3 system.

2x+4y+4z=23x+7y+7z=−5 x+2y+2z=4(1)(2)(3)2x+4y+4z=2(1)3x+7y+7z=−5(2) x+2y+2z=4(3)

**Answer**-

Access these online resources for additional instruction and practice with Cramer’s Rule.

### 9.8 Section Exercises

#### Verbal

__
1__.

Explain why we can always evaluate the determinant of a square matrix.

2.

Examining Cramer’s Rule, explain why there is no unique solution to the system when the determinant of your matrix is 0. For simplicity, use a 2×22×2 matrix.

__
3__.

Explain what it means in terms of an inverse for a matrix to have a 0 determinant.

4.

The determinant of 2×22×2 matrix AA is 3. If you switch the rows and multiply the first row by 6 and the second row by 2, explain how to find the determinant and provide the answer.

#### Algebraic

For the following exercises, find the determinant.

__
5__.

∣∣∣1324∣∣∣| 1234 |

6.

∣∣∣−132−4∣∣∣| −123−4 |

__
7__.

∣∣∣2−1−56∣∣∣| 2−5−16 |

8.

∣∣∣−8−145∣∣∣| −84−15 |

__
9__.

∣∣∣130−4∣∣∣| 103−4 |

10.

∣∣∣10020−10∣∣∣| 10200−10 |

__
11__.

∣∣∣1050.20.1∣∣∣| 100.250.1 |

12.

∣∣∣68−34∣∣∣| 6−384 |

__
13__.

∣∣∣−23.1−34,000∣∣∣| −2−33.14,000 |

14.

∣∣∣−1.17.20.6−0.5∣∣∣| −1.10.67.2−0.5 |

__
15__.

∣∣∣∣−10001000−3∣∣∣∣| −10001000−3 |

16.

∣∣∣∣−10042003−3∣∣∣∣| −14002300−3 |

__
17__.

∣∣∣∣101010100∣∣∣∣| 101010100 |

18.

∣∣∣∣23−5−3−46111∣∣∣∣| 2−313−41−561 |

__
19__.

∣∣∣∣−2−4212−84−8−3∣∣∣∣| −214−42−82−8−3 |

20.

∣∣∣∣6−41−1−3925−1∣∣∣∣| 6−12−4−3519−1 |

__
21__.

∣∣∣∣52313−6−11−3∣∣∣∣| 51−12313−6−3 |

22.

∣∣∣∣1.1−44.120−0.4−102.5∣∣∣∣| 1.12−1−4004.1−0.42.5 |

__
23__.

∣∣∣∣21.1−9.3−1.6303.1−82∣∣∣∣| 2−1.63.11.13−8−9.302 |

24.

∣∣∣∣∣−1215013−160141718∣∣∣∣∣| −12131415−16170018 |

For the following exercises, solve the system of linear equations using Cramer’s Rule.

__
25__.

2x−3y=−14x+5y=92x−3y=−14x+5y=9

26.

5x−4y=2−4x+7y=65x−4y=2−4x+7y=6

__
27__.

6x−3y=2−8x+9y=−16x−3y=2−8x+9y=−1

28.

2x+6y=125x−2y=132x+6y=125x−2y=13

__
29__.

4x+3y=232x−y=−14x+3y=232x−y=−1

30.

10x−6y=2−5x+8y=−110x−6y=2−5x+8y=−1

__
31__.

4x−3y=−32x+6y=−44x−3y=−32x+6y=−4

32.

4x−5y=7−3x+9y=04x−5y=7−3x+9y=0

__
33__.

4x+10y=180−3x−5y=−1054x+10y=180−3x−5y=−105

34.

8x−2y=−3−4x+6y=48x−2y=−3−4x+6y=4

For the following exercises, solve the system of linear equations using Cramer’s Rule.

__
35__.

x+2y−4z=−17x+3y+5z=26−2x−6y+7z=−6x+2y−4z=−17x+3y+5z=26−2x−6y+7z=−6

36.

−5x+2y−4z=−474x−3y−z=−943x−3y+2z=94−5x+2y−4z=−474x−3y−z=−943x−3y+2z=94

__
37__.

4x+5y−z=−7−2x−9y+2z=85y+7z=214x+5y−z=−7−2x−9y+2z=85y+7z=21

38.

4x−3y+4z=105x−2z=−23x+2y−5z=−94x−3y+4z=105x−2z=−23x+2y−5z=−9

__
39__.

4x−2y+3z=6−6x+y=−22x+7y+8z=244x−2y+3z=6−6x+y=−22x+7y+8z=24

40.

5x+2y−z=1−7x−8y+3z=1.56x−12y+z=75x+2y−z=1−7x−8y+3z=1.56x−12y+z=7

__
41__.

13x−17y+16z=73−11x+15y+17z=6146x+10y−30z=−1813x−17y+16z=73−11x+15y+17z=6146x+10y−30z=−18

42.

−4x−3y−8z=−72x−9y+5z=0.55x−6y−5z=−2−4x−3y−8z=−72x−9y+5z=0.55x−6y−5z=−2

__
43__.

4x−6y+8z=10−2x+3y−4z=−5x+y+z=14x−6y+8z=10−2x+3y−4z=−5x+y+z=1

44.

4x−6y+8z=10−2x+3y−4z=−512x+18y−24z=−304x−6y+8z=10−2x+3y−4z=−512x+18y−24z=−30

#### Technology

For the following exercises, use the determinant function on a graphing utility.

__
45__.

∣∣∣∣∣∣1010020281349003∣∣∣∣∣∣| 1089021010300243 |

46.

∣∣∣∣∣∣10300−90121−2113−1−2∣∣∣∣∣∣| 10210−91330−2−1011−2 |

__
47__.

∣∣∣∣∣∣∣1200011200710020452,0002∣∣∣∣∣∣∣| 1217401210050022,0000002 |

48.

∣∣∣∣∣∣1247035800690000∣∣∣∣∣∣| 1000230045607890 |

#### Real-World Applications

For the following exercises, create a system of linear equations to describe the behavior. Then, calculate the determinant. Will there be a unique solution? If so, find the unique solution.

__
49__.

Two numbers add up to 56. One number is 20 less than the other.

50.

Two numbers add up to 104. If you add two times the first number plus two times the second number, your total is 208

__
51__.

Three numbers add up to 106. The first number is 3 less than the second number. The third number is 4 more than the first number.

52.

Three numbers add to 216. The sum of the first two numbers is 112. The third number is 8 less than the first two numbers combined.

For the following exercises, create a system of linear equations to describe the behavior. Then, solve the system for all solutions using Cramer’s Rule.

__
53__.

You invest $10,000 into two accounts, which receive 8% interest and 5% interest. At the end of a year, you had $10,710 in your combined accounts. How much was invested in each account?

54.

You invest $80,000 into two accounts, $22,000 in one account, and $58,000 in the other account. At the end of one year, assuming simple interest, you have earned $2,470 in interest. The second account receives half a percent less than twice the interest on the first account. What are the interest rates for your accounts?

__
55__.

A movie theater needs to know how many adult tickets and children tickets were sold out of the 1,200 total tickets. If children’s tickets are $5.95, adult tickets are $11.15, and the total amount of revenue was $12,756, how many children’s tickets and adult tickets were sold?

56.

A concert venue sells single tickets for $40 each and couple’s tickets for $65. If the total revenue was $18,090 and the 321 tickets were sold, how many single tickets and how many couple’s tickets were sold?

__
57__.

You decide to paint your kitchen green. You create the color of paint by mixing yellow and blue paints. You cannot remember how many gallons of each color went into your mix, but you know there were 10 gal total. Additionally, you kept your receipt, and know the total amount spent was $29.50. If each gallon of yellow costs $2.59, and each gallon of blue costs $3.19, how many gallons of each color go into your green mix?

58.

You sold two types of scarves at a farmers’ market and would like to know which one was more popular. The total number of scarves sold was 56, the yellow scarf cost $10, and the purple scarf cost $11. If you had total revenue of $583, how many yellow scarves and how many purple scarves were sold?

__
59__.

Your garden produced two types of tomatoes, one green and one red. The red weigh 10 oz, and the green weigh 4 oz. You have 30 tomatoes, and a total weight of 13 lb, 14 oz. How many of each type of tomato do you have?

60.

At a market, the three most popular vegetables make up 53% of vegetable sales. Corn has 4% higher sales than broccoli, which has 5% more sales than onions. What percentage does each vegetable have in the market share?

__
61__.

At the same market, the three most popular fruits make up 37% of the total fruit sold. Strawberries sell twice as much as oranges, and kiwis sell one more percentage point than oranges. For each fruit, find the percentage of total fruit sold.

62.

Three bands performed at a concert venue. The first band charged $15 per ticket, the second band charged $45 per ticket, and the final band charged $22 per ticket. There were 510 tickets sold, for a total of $12,700. If the first band had 40 more audience members than the second band, how many tickets were sold for each band?

__
63__.

A movie theatre sold tickets to three movies. The tickets to the first movie were $5, the tickets to the second movie were $11, and the third movie was $12. 100 tickets were sold to the first movie. The total number of tickets sold was 642, for a total revenue of $6,774. How many tickets for each movie were sold?

64.

Men aged 20–29, 30–39, and 40–49 made up 78% of the population at a prison last year. This year, the same age groups made up 82.08% of the population. The 20–29 age group increased by 20%, the 30–39 age group increased by 2%, and the 40–49 age group decreased to 3434 of their previous population. Originally, the 30–39 age group had 2% more prisoners than the 20–29 age group. Determine the prison population percentage for each age group last year.

__
65__.

At a women’s prison down the road, the total number of inmates aged 20–49 totaled 5,525. This year, the 20–29 age group increased by 10%, the 30–39 age group decreased by 20%, and the 40–49 age group doubled. There are now 6,040 prisoners. Originally, there were 500 more in the 30–39 age group than the 20–29 age group. Determine the prison population for each age group last year.

For the following exercises, use this scenario: A
health-conscious company decides to make a trail mix out of
almonds, dried cranberries, and chocolate-covered cashews. The
nutritional information for these items is shown
in __Table
1__.

Fat (g) | Protein (g) | Carbohydrates (g) | |
---|---|---|---|

Almonds (10) |
6 | 2 | 3 |

Cranberries (10) |
0.02 | 0 | 8 |

Cashews (10) |
7 | 3.5 | 5.5 |

**Table** **1**

66.

For the special “low-carb”trail mix, there are 1,000 pieces of mix. The total number of carbohydrates is 425 g, and the total amount of fat is 570.2 g. If there are 200 more pieces of cashews than cranberries, how many of each item is in the trail mix?

__
67__.

For the “hiking” mix, there are 1,000 pieces in the mix, containing 390.8 g of fat, and 165 g of protein. If there is the same amount of almonds as cashews, how many of each item is in the trail mix?

68.

For the “energy-booster” mix, there are 1,000 pieces in the mix, containing 145 g of protein and 625 g of carbohydrates. If the number of almonds and cashews summed together is equivalent to the amount of cranberries, how many of each item is in the trail mix?