A local gym offers two types of memberships: a basic membership for $30 per month and a premium membership for $50 per month. The gym wants to attract new members by offering a promotional discount. For the first month, the basic membership will cost $20, while the premium membership will cost $40. After the first month, both memberships will revert to their regular prices.
If a new member decides to join the gym with a basic membership and continues for 6 months, how much will they spend in total?
Let x be the total amount spent over 6 months. Provide your answer in the grid below.