A bakery is selling loaves of bread at different prices. The following list shows the prices for some specific types of bread:
If a customer buys 3 sourdough loaves, 2 whole wheat loaves, and 1 rye loaf, how much will they spend in total? Express your answer as a rational number in dollars.