Rob buys 6 tickets to the basketball game. He pays $8.50 for parking. His total cost is $40.54. What is the cost of each ticket?