Answer:
Let x be the cost of a cup of coffee. On Monday, 10 cups of coffee cost 10x dollars, and 5 doughnuts cost 5y dollars. The total cost was $16.50, so we can write the equation:
10x + 5y = 16.50
On Tuesday, 5 cups of coffee cost 5x dollars, and 10 doughnuts cost 10y dollars. The total cost was $14.25, so we can write the equation:
5x + 10y = 14.25
We now have a system of two equations in two variables that we can solve to find the cost of a cup of coffee.