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:
5.4m questions
7.0m answers