At the town carnival Billy rode the ferris wheel 7 times, but 3 times were free. If each ride cost 5 tickets, how many tickets did he use?