Answer:
Gabriel bought 9 bottles of soda, and 7 bottles of sugar.
Explanation:
This problem is solved by using a system of equations.
will be a bottle of soda, and
will be a bottle of juice.
So, we know that each bottle of soda has 35 grams of sugar, this would expressed like:
.
In addition, each bottle of juice has 10 grams of sugar, this would be:
.
Now, the problem states that the total amount of sugar is 385 grams, this allows us to represent this with the equation:
![35x+10y=385](https://img.qammunity.org/2020/formulas/mathematics/high-school/7mgxqrgboa2bwa76kx3l4t795amjyh2fcx.png)
The problem specifies that Gabriel purchased 2 more bottles of soda than juice, this is represents with this equation:
![x=y+2](https://img.qammunity.org/2020/formulas/mathematics/middle-school/xq4dwag2katktmbktc9yu3cmbuvhd6cuwq.png)
Now, we solve the system of equations 2x2, which will give us the result of each variable:
![\left \{ {{35x+10y=385} \atop {x=y+2}} \right.\\\left \{ {{35x+10y=385} \atop {(x-y=2})10} \right.\\\left \{ {{35x+10y=385} \atop (10x-10y=20}} \right.\\45x=405\\x=(405)/(45)=9](https://img.qammunity.org/2020/formulas/mathematics/high-school/66vx2tlnrmsqwmn161tno9t44697yitk37.png)
This means that Gabriel purchased 9 bottles of soda.
Then, we replace this value in one of the equation to find the other result:
![x=y+2](https://img.qammunity.org/2020/formulas/mathematics/middle-school/xq4dwag2katktmbktc9yu3cmbuvhd6cuwq.png)
![9=y+2](https://img.qammunity.org/2020/formulas/mathematics/high-school/k3p9q34k3rp7qwxey4pnai221vh4yx8k6e.png)
![y=9-2](https://img.qammunity.org/2020/formulas/mathematics/high-school/lp1dmndhg8f90otpqil54av4k29lj5d21v.png)
![y=7](https://img.qammunity.org/2020/formulas/mathematics/middle-school/gvf6itkqfb4zpyy2ztyz4u1g2am8udpvaz.png)
So, now we know that Gabriel bought 9 bottles of soda, and 7 bottles of sugar.