In this problem, we're going to use variables and equations to represent the situation in the question.
- Let r represent the number of red marbles in the bag, and let y represent the number of yellow marbles in the bag.
The question says "The number of yellow marbles is 2 more than 5 times the number of red marbles." Using this information, we can create the equation:
![y=5r+2](https://img.qammunity.org/2021/formulas/mathematics/high-school/g9j3h0vc4cl64ww99ybmh93at10ubswaqf.png)
Also, we know there are 80 marbles total. We can also create the equation:
![r+y=80](https://img.qammunity.org/2021/formulas/mathematics/high-school/lpk273ty2vkuxsw0xgkjapo3md0h3dd8g7.png)
We're going to use the substitution method to solve this system of equations that we have created. Let's substitute
into the equation above so we can solve it:
![r+(5r+2)=80](https://img.qammunity.org/2021/formulas/mathematics/high-school/ouufca5orqwk2n8bgrrkdf1estlmukiwhd.png)
Remove parenthesis and combine like terms
![6r+2=80](https://img.qammunity.org/2021/formulas/mathematics/high-school/89spjvvj16aj8m0j91f23pjoocqwa827qm.png)
Subtract both sides by 2
![6r=78](https://img.qammunity.org/2021/formulas/mathematics/high-school/4vcww9d51auojqz3nkuqhs3w3x99oemc4v.png)
Divide both sides by 6.
![r=13](https://img.qammunity.org/2021/formulas/mathematics/high-school/tmt4dsp69b0swktbl74gic9u8fl9wp1pp4.png)
There are 13 red marbles in the bag. However, we needed the amount of yellow marbles. The amount of yellow marbles is now easy to solve for since we have the number of red marbles.
Use the equation:
![r+y=80](https://img.qammunity.org/2021/formulas/mathematics/high-school/lpk273ty2vkuxsw0xgkjapo3md0h3dd8g7.png)
We know r is 13.
![13+y=80](https://img.qammunity.org/2021/formulas/mathematics/high-school/wrw6bh8rah53ejf9iexz8x20z1u6yzoi0s.png)
Subtract both sides by 13
![\boxed{y=67}](https://img.qammunity.org/2021/formulas/mathematics/high-school/vqzim723o207lbl0jkn12ma6b73wkzv4ya.png)
There are 67 yellow marbles in the bag. Let me know if you need any clarifications, thanks!
~ Padoru