Answer:
Each coffee= $3.25
Each bagel= $2.5
Step-by-step explanation:
Let x be price of each cup of coffee and y be the price of each bagel.
We have been given that Kathryn buys 8 cups of coffee and 2 bagels one day and pays $31. We can represent this information in an equation as:
We are also told that Harry buys 3 cups of coffee and 3 bagels the same day and pays $17.25. We can represent this information in an equation as:
Using our given information we have a formed a system of equations and we will solve our system of equations using substitution method.
From equation 1 we will get,

Now let us substitute x's value in equation 2.

Upon distributing 3 we will get,
Now we will make a common denominator on left side of our equation.
Upon multiplying both sides of our equation by 8 we will get,

Therefore, price of each bagel is $2.5.
Now let us substitute y=2.5 in equation 1 to find the price of each coffee.




Therefore, the price of each coffee is $3.25.