Answer:
Cost of
gallon of ice cream 
Cost of
container of strawberries 
Step-by-step explanation:
Let cost of
gallon ice cream 
Let cost of
container of strawberries 
<u>Jeremiah's purchase</u>
Jeremiah bought
gallon of ice cream
so total spend on ice cream = cost of
gallon
total gallons

Jeremiah bought
container of strawberries
So total spend on = strawberries =cost pf
container
total container

Jeremiah's total expenditure 

<u>Gary's purchase</u>
Gary bought
gallons of ice cream
so total spend on ice cream = 
Gary bough
containers of strawberries
so total spend on strawberries = 
Gary's total expenditure 

solve eqn(1) and eqn(2)

multiply eqn(2) by (2) and eqn(2)-eqn(3)

Substitute in eqn(2)

Cost of
gallon of ice cream 
Cost of
container of strawberries 