3.) Sam has $40 to spend at the town carnival. Admission is $6 and each ride costs $3. Write an inequality to find the greatest number of rides he can go on.