There were 600 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. How many people remained to see the end of the game if there were 240 girls at the beginning of the game?
There were 600 - 240 = 
<gadget id="calculator">600-240</gadget>
<output>360</output>
360 boys at the beginning of the game.
So, 360 x 1/4 = 
<gadget id="calculator">360*1/4</gadget>
<output>90</output>
90 boys left early.
And 240 x 1/8 = 
<gadget id="calculator">240*1/8</gadget>
<output>30</output>
30 girls left early.
A total of 90 + 30 = 
<gadget id="calculator">90+30</gadget>
<output>120</output>
120 people left early.
Therefore, 600 - 120 = 
<gadget id="calculator">600-120</gadget>
<output>480</output>
480 people remained to see the end of the game.

<result>480</result>