We are given that a number of students are going to a football game, but don't know how many. Let's call this number of students, n. Let's also assume that the students split the total cost evenly, so that each student pays a price, p.
Then we have,
1. (n)(p) = $80
However, 8 of our students are unable to go, leaving us with (n-8) students. As a consequence, the price each student must pay has increased by $0.50, such that each remaining student must now pay (p + 0.50).
Then we also have,
2. (n-8)(p+0.50) = $80
We now have a system of 2 equations with 2 variables, n and p, which indicates that we can use this information to solve for both. Since we are solving for the number of students, we should substitute p with an expression for n to have one equation and one unknown.
Rearranging equation 1, we have
p = 80/n
Substituting this into equation 2,
(n-8)((80/n) +0.50) =80
Distributing and simplifying,
80 - 640/n + 0.50n - 4 = 80
-640/n + 0.50n-4 = 0
We notice that our equation has terms with coefficients in front of n to the power -1, 1 and 0 respectively. This hints that we can multiply the entire equation by n to formulate a quadratic equation to solve for n.
Thus,
0.50n2 -4n - 640 = 0.
Using the quadratic formula, we can solve the equation and obtain
n = 40 and n = -32.
n =-32 is our illogical answer, since the number of students cannot be negative and n=40 is our logical answer.
BUT WE ARE NOT DONE!
We need to make sure that our variable, n, matches what the problem is asking for. n represented the total number of students BEFORE the students dropped out. The question wants us to solve the number of students that went on the bus, which was (n-8).
Therefore, the number of students that went on the bus was (40-8) = 32 students.
(Each remaining student now pays $2.50 instead of the $2.00 each was to pay when all 40 students were to attend.)