Answer:
Cost of an ice cream = $3
Cost of a soft drink = $2
Explanation:
Let's set up a system of equations based on the given information:
Let
be the cost of an ice cream and
be the cost of a soft drink.
The first equation represents the total cost of one ice cream and three soft drinks:

The second equation represents the total cost of two ice creams and five soft drinks:

Now, we have a system of two equations:

We can solve this system of equations to find the values of
and
.
Here's one way to solve it:
Multiply the first equation by 2 to make the coefficients of
in both equations match:

Now, subtract the second equation from the first to eliminate
:

Now that we have the value for
, substitute it back into one of the original equations. Let's use the first equation:

Solve for
:


So, the cost of an ice cream (
) is $3.
The cost of a soft drink (
) is $2.