Life gym charges a one-time fee to join of $40 and $20 each month. Write an equation that models the total cost, y, for x months of being a member at this gym.