Mark bought gifts for his friends, and each gift cost $9. Let y represent the total cost and x represent the number of gifts. Write an equation to represent the proportional relationship between the total cost and the number of gifts he bought.