At Beans & Bagels, a bagel costs $1 more than a cup of coffee. Luca bought 4 cups of coffee and 6 bagels at a cost of $31. Please determine the cost of one bagel and the cost of one cup of coffee.
Each bagel coast:
Each cup of the coffee coast: