Michelle has starting balance on a gift card for $300. She buys several dresses at $40 a piece.After her purchase she has $140 left on her gift card.How many dresses did she buy?​