In a local bookstore, the owner has a special sale on notebooks. Each notebook costs $3. If a customer buys a total of N notebooks, they receive a 10% discount if they purchase more than 5 notebooks. If a customer buys 7 notebooks, what is the total cost after applying the discount?