Let r and b represent, respectively, the number of red and blue marbles. We know a couple of things:
- The total number of marbles is 77, so
![r+b = 77](https://img.qammunity.org/2019/formulas/mathematics/high-school/es2vz5ued7wcn8hl16kklaeefhxg9kn4de.png)
- The number of blue marbles is five more than twice the number of red marbles, so
![b = 2r+5](https://img.qammunity.org/2019/formulas/mathematics/high-school/u6ajzmzjxs4f1n0glvnspv5kfeky96ns38.png)
So, we have the following system:
![\begin{cases} r+b = 77\\b = 2r+5\end{cases}](https://img.qammunity.org/2019/formulas/mathematics/high-school/rpyzxryb3y1rrcyehhxc39q5erreagxvjt.png)
The second equation gives a way to express b in terms of r. Use this expression in the first equation:
![r+b = 77 \iff r+(2r+5)=77 \iff 3r+5=77 \iff 3r = 72 \iff r = 24](https://img.qammunity.org/2019/formulas/mathematics/high-school/f8l3c8s7d2nugorwl6h3gc8iu02fcw0afl.png)
So, if Jim has 24 red marbles, he has
blue marbles.