
Donald W. answered 03/24/22
Experienced and Patient Tutor for Math and Computer Science
We can solve this with a system of two equations. Let s be the number of sodas sold and h be the number of hot dogs sold. Then, we can make the following equations based on the given information:
s + h = 231
s = 2 * h
Now we can plug in 2 * h for s in the first equation and solve for h:
2 * h + h = 231
3 * h = 231
h = 77
Lastly, we can plug in 77 for h into our second equation and solve for s:
s = 2 * h
s = 2 * 77
s = 154
So the vendor sold 154 sodas and 77 hot dogs!