A school selected 50 students to participate in the district composition competition and mathematics competition. As a result, 3 students won both competitions, and 27 students did not win both competitions. It is known that 14 students won the composition competition. Ask about the winners of the mathematics competition. how many people?
某校选出50名学生参加区作文比赛和数学比赛，结果3人两项比赛都获奖了，有27人两项比赛都没有获奖，已知作文比赛获奖的有14人，问数学比赛获奖的有多少人？
<gadget id="calculator">50 - 27</gadget>
<output>23</output>

<gadget id="calculator">3 - 14</gadget>
<output>-11</output>

<gadget id="calculator">23 + (-11)</gadget>
<output>12</output>

<result>12</result>