Answer:
Nancy bought 12 candy bars.
Explanation:
Let us use the variable
for a candy bar and
for bags of trail mix.
From this paragraph, we can create a system of equations
The first is regarding the price of each.
"A candy bar costs 90 cents" will be
![.9b](https://img.qammunity.org/2021/formulas/mathematics/college/c278vpe24vrx2plva44kox5h0gfd7gw246.png)
"A bag of trail mix costs 50 cents" will be
![.5m](https://img.qammunity.org/2021/formulas/mathematics/college/7kmez694ejc1ef7zjbh8z4mxju4kwrykhh.png)
"Nancy spent $13.30" will be
![=13.30](https://img.qammunity.org/2021/formulas/mathematics/college/g7v1xo3mppjbplw5sa9z9xq4rxyxzxale8.png)
When put all together, the first equation will be
![.9b+.5m=13.3](https://img.qammunity.org/2021/formulas/mathematics/college/tqvk4cy3jrly2lmlm88do4qrfd33k1wl3s.png)
"Nancy bought 7 more candy bars than bags of trail mix" will be
![b=m+7](https://img.qammunity.org/2021/formulas/mathematics/college/5a4wzuxmf6hwica3zxbtosinwxxd6a9v21.png)
In order to find how many candy bars that Nancy bought, we need to solve this system of equation.
To solve this system of equations, we can use the substitution method by replacing the
in the first equation with
![m+7](https://img.qammunity.org/2021/formulas/mathematics/college/4ioc9c43tpk0dwa9h1atwd666tc8vcgvdt.png)
![.9(m+7)+.5m=13.3](https://img.qammunity.org/2021/formulas/mathematics/college/tvgcvt9asljqix2i8omjtg22u77kx4ndy9.png)
Now, we can solve for
![m](https://img.qammunity.org/2021/formulas/mathematics/middle-school/id5t45gvtu7zzm4ok70kfwzrd93p5069g2.png)
![.9(m+7)+.5m=13.3\\\\.9m+6.3+.5m=13.3\\\\1.4m+6.3=13.3\\\\1.4m=7\\\\m=(7)/(1.4) \\\\m=5](https://img.qammunity.org/2021/formulas/mathematics/college/7n4fhij1yeege3ngndqz9jxq64d96d9nlo.png)
Now that we know how many bags of trail mix were bought, we can use the second equation to find how many candy bars were bought
![b=m+7\\\\b=5+7\\\\b=12](https://img.qammunity.org/2021/formulas/mathematics/college/2baoxpa0cjm7imty5fd0p4ngk5mylgvxce.png)
While we have the answer, it is good practice to check that this answer is correct. To do this, we can substitute in the values for
and
into the first equation
![.9(12)+.5(5)=13.3\\\\10.8+2.5=13.3\\\\13.3=13.3](https://img.qammunity.org/2021/formulas/mathematics/college/d92blk3rhy7m61g7lvpw7thmaezf1tyuwz.png)