Students in Chaoyang Primary School held a mathematical thinking contest. The participating students had to take two exams. The results of the exams were: the ratio of the number of people who failed in the first round to the number who passed was 1:7; the number of people who passed the second round was reduced by 24. The ratio of the number of people is 1:5. How many people participated in the Mathematical Thinking Contest?
朝阳小学学生举行数学思维竞赛，参赛学生都要参加两场考试，考试结果：第一场不及格人数与及格人数的比是1：7；第二场及格人数减少24人，不及格人数与及格人数的比是1：5．参加数学思维竞赛的人数一共有多少人？
<gadget id="calculator">1 + 7</gadget>
<output>8</output>

<gadget id="calculator">7 / 8</gadget>
<output>7/8 = around 0.875</output>

<gadget id="calculator">1 + 5</gadget>
<output>6</output>

<gadget id="calculator">5 / 6</gadget>
<output>5/6 = around 0.833333</output>

<gadget id="calculator">(7/8) - (5/6)</gadget>
<output>1/24 = around 0.041667</output>

<gadget id="calculator">24 / (1/24)</gadget>
<output>576</output>

<result>576</result>