Hayley loves to shop for make up. She went to her favorite store and bought eye shadow for $5.99, 2 bottles of nailpolish for $7.50 each and a tube of mascara for $8.50. She had a 20% discount coupon. Create and solve an equation to determine how much was her purchase after the discount was applied.