Lucy went to a department store to take advantage of a promotional sale. The store offered a discount of $10 on every $50 spent. Lucy bought a pair of shoes for $40, a dress for $35, and a handbag for $25. How much did Lucy pay after applying the discount? Let's think step by step and output the final answer within \boxed{}.
user