The men's clothing buyer had a group of 80 pocket squares priced at $40 each that were selling very slowly. To stimulate sales, the buyer reduced the price of the whole group to $29.99. At this price, 40 were sold in a short time. At a later date, the remaining pieces became shopworn and needed a further reduction. The buyer reduced them to $19.99 and an additional 15 were sold. What was the total dollar markdown taken?