Ms. Sharp is going to a bakery to pick bread to bring to a family dinner. She also purchases a pie for $15. If each loaf of bread costs $8, write an equation to represent the total cost, y, of x loafs of bread and the pie from the bakery.