We want to know the cost for 7 rides and for 10 rides. We see that for each ride the price increases by $3.50. And thus the price for 7 rides will be:

And the price for 10 rides will be:

Now, for finding the equation we use that the state fair charges $8 for a general admission, and $3.50 for each ride. This can be written as:

where x represents the number of rides.
For example, if we want to know the cost for 18 rides, we replace the value of x by 18, and we get:

Then, the cost for 18 rides is $71.