There are 45 people in class 31, 26 of them participated in the math competition, 22 participated in the composition competition, and 12 participated in both competitions. How many people in Class 3 and 1 did not participate in the two competitions?
三1班有45人，其中26人参加了数学竞赛，22人参加了作文比赛，12人两项比赛都参加了．三1班共有多少人两项比赛都没有参加？
<gadget id="calculator">22 - 12</gadget>
<output>10</output>

<gadget id="calculator">26 + 10</gadget>
<output>36</output>

<gadget id="calculator">45 - 36</gadget>
<output>9</output>

<result>9</result>