Y is the function of x so there are two things called Input and output
After consideration I'm not sure but I think x=3 and y=6 I'm not a math whiz but this made sense to me.
5a + s = 2662
a + s = 1198
4a = 1464
a = 366
5(366) + s = 2,662
1830 adult tickets sold
2662 - 1830 = 832
832 student tickets sold
If you times 39.99 by 0.20 (20%) then you get your answer of $7.99
166 hope this helps u with ur homwork