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:

The problem specifies that Gabriel purchased 2 more bottles of soda than juice, this is represents with this equation:

Now, we solve the system of equations 2x2, which will give us the result of each variable:

This means that Gabriel purchased 9 bottles of soda.
Then, we replace this value in one of the equation to find the other result:




So, now we know that Gabriel bought 9 bottles of soda, and 7 bottles of sugar.