In the sixth grade of Guanghui Primary School, in a Chinese and Mathematics competition, 24 people passed Chinese and 27 passed Mathematics. Among them, 14 people passed both Chinese and Mathematics, and another 8 people failed both Chinese and Mathematics. How many students are there in total?
光辉小学六年级在一次语、数联赛中，语文及格的有24人，数学及格的有27人，其中语、数都及格的有14人，另外还有8人语、数都没及格，六年级共有学生多少人．
<gadget id="calculator">27 - 14</gadget>
<output>13</output>

<gadget id="calculator">24 + 13 + 8</gadget>
<output>45</output>

<result>45</result>