Question 435792
Let x = the number of $5 tickets 
Then 20-x = the number of $8 tickets
Since the total amount spent is $118, we can write:
5x + 8(20-x) = 118
Collect terms, solve for x:
-3x + 160 = 118 -> 3x = 42 -> x = 14
So the number of $5 tickets is 14, the number of $8 tickets is 6.