Final answer:
To find the cost of a cup of soda, set up a system of equations based on the given information and solve using the substitution method. The cost of a cup of soda is $1.95.
Step-by-step explanation:
To find the cost of a cup of soda, we can set up a system of equations based on the given information:
Let the cost of a sandwich be 's' and the cost of a cup of soda be 'c'.
From the first statement, we can write the equation: s + c = 3.10.
From the second statement, we can write the equation: 2s + 3c = 8.15.
We can solve this system of equations using the method of substitution or elimination.
In this case, let's use the substitution method. Solving the first equation for 's', we get: s = 3.10 - c.
Substituting this value of 's' into the second equation, we get: 2(3.10 - c) + 3c = 8.15.
Simplifying this equation, we get: 6.20 - 2c + 3c = 8.15.
Combining like terms, we get: 1c = 1.95.
Therefore, the cost of a cup of soda is $1.95.