Let:
x = Number of rides
Total money spent = $6.00 + $0.50x
Since you have $22.00 to spend at the fair on rides and admission:
1.6m questions
2.0m answers