To solve this problem, we need to determine the value of x, which represents the number of people in the stadium when the football game started.
Let's break down the information given:
Number of girls at the beginning of the game: 240
Number of boys at the beginning of the game: x - 240 (since x represents the total number of people)
One-fourth of the boys left early: (1/4)(x - 240)
One-eighth of the girls left early: (1/8)(240)
Total number of people remaining at the end of the game: 480
We can set up the equation as follows:
Number of boys remaining + Number of girls remaining = Total number of people remaining
x - 240 - (1/4)(x - 240) + 240 - (1/8)(240) = 480
Let's simplify and solve for x:
x - 240 - (1/4)x + 60 + 240 - 30 = 480
To combine like terms, we simplify the equation:
(3/4)x + 30 = 480
To isolate x, we subtract 30 from both sides of the equation:
(3/4)x + 30 - 30 = 480 - 30
(3/4)x = 450
To solve for x, we multiply both sides of the equation by 4/3:
(4/3)(3/4)x = (450)(4/3)
x = 600
The value of x is 600.
#### 600
The answer is: 600
Below is a math problem. Provide a detailed, step-by-step solution.

### Problem:
There were x people in the stadium when the football game started. Before the game was over, one-fourth of the boys and one-eighth of the girls left early. 480 people remained to see the end of the game if there were 240 girls at the beginning of the game.

### Answer:
