In a local bakery, the owner is preparing to sell loaves of bread. Each loaf costs $3. If a customer buys 7 loaves, they want to know the total cost after a discount of 10% is applied. Calculate the final amount the customer needs to pay after the discount.