Elite middle schools held a health knowledge competition. Among the participating students, 4 out of 20 students won the first prize, 2 out of 8 students won the second prize, and 6 out of 12 students won the third prize. A total of 247 people were awarded. If all participating students are awarded an average of 40 yuan each, how much is the total bonus?
精英中学举行卫生知识竞赛在参赛的学生中平均每20人中4人获一等奖，平均每8人中有2人获二等奖，平均每12人中有6人获三等奖，合计共有247人获奖．假如所有参赛学生平均每人奖40元，奖金共需多少元？
<gadget id="calculator">4 / 20</gadget>
<output>1/5 = around 0.2</output>

<gadget id="calculator">2 / 8</gadget>
<output>1/4 = around 0.25</output>

<gadget id="calculator">6 / 12</gadget>
<output>1/2 = around 0.5</output>

<gadget id="calculator">(1/5) + (1/4) + (1/2)</gadget>
<output>19/20 = around 0.95</output>

<gadget id="calculator">247 / (19/20)</gadget>
<output>260</output>

<gadget id="calculator">260 * 40</gadget>
<output>10_400</output>

<result>10_400</result>