A local gym offers two types of memberships: a monthly membership for $50 and a yearly membership for $500. To encourage more annual sign-ups, the gym decided to offer a one-time discount. If a customer decides to pay for a yearly membership, they are given a 10% discount on the total price.
What is the total cost of the yearly membership after applying the discount?