A store has a special promotion on pencils. The price of a single pencil is $2.50. If a customer buys three pencils, there is a discount of $1.50 applied to the total price. A customer buys six pencils. What is the amount the customer has to pay after applying the discount?