A corporate team-building event costs $2 for every attendee. Write an equation that shows the relationship between the attendees x and the cost y.

Write your answer as an equation with y first, followed by an equals sign.