Austen's graduation picnic costs $2 for every attendee. Write an equation that shows the relationship between the attendees x and the cost y.