Answer:
<h2>Gabriel bought 9 bottles of soda, and 7 bottles of sugar.</h2>
Step-by-step 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://tex.z-dn.net/?f=35x%2B10y%3D385)
The problem specifies that Gabriel purchased 2 more bottles of soda than juice, this is represents with this equation:
![x=y+2](https://tex.z-dn.net/?f=x%3Dy%2B2)
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=\frac{405}{45}=9](https://tex.z-dn.net/?f=%5Cleft%20%5C%7B%20%7B%7B35x%2B10y%3D385%7D%20%5Catop%20%7Bx%3Dy%2B2%7D%7D%20%5Cright.%5C%5C%5Cleft%20%5C%7B%20%7B%7B35x%2B10y%3D385%7D%20%5Catop%20%7B%28x-y%3D2%7D%2910%7D%20%5Cright.%5C%5C%5Cleft%20%5C%7B%20%7B%7B35x%2B10y%3D385%7D%20%5Catop%20%2810x-10y%3D20%7D%7D%20%5Cright.%5C%5C45x%3D405%5C%5Cx%3D%5Cfrac%7B405%7D%7B45%7D%3D9)
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://tex.z-dn.net/?f=x%3Dy%2B2)
![9=y+2](https://tex.z-dn.net/?f=9%3Dy%2B2)
![y=9-2](https://tex.z-dn.net/?f=y%3D9-2)
![y=7](https://tex.z-dn.net/?f=y%3D7)
So, now we know that Gabriel bought 9 bottles of soda, and 7 bottles of sugar.