It costs $8 to enter a fair and $3 for each ride. Which of the following equations represents the total cost, y?

A. y = 11x
B. y = 8x + 3
C. y = 3x + 8
D. y = 11x + 8