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

y=mx+b

y = 3x + 18