A ticket for the local fair costs $20 and each ride costs $4.50. Write an equation that represents the cost based upon the number of rides (x).

Cost = $20 + $4.50x