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:
8.8m questions
11.4m answers