HELP PLZ

A carnival charges $250 per ride after an entrance fee.You paid a total of $22.50 after 6 rides.Write an equation that gives the total cost a function of the number of rides.