Students in a certain school participated in a mathematics competition. After two exams, the number of people who passed the first round was 4 times more than the number of people who failed by 2, and the number of students who passed the second round increased by 2. At this time, the number of people who passed was exactly the number of people who failed. 6 times, how many people participated this time?
某校学生参加数学竞赛，考了两场试，第一场及格的人数比不及格的人数4倍多2人，第二场及格的人数增加2人，这时及格的人数正好是不及格人数的6倍，这次参赛的共有多少人？
<gadget id="calculator">2 * 6</gadget>
<output>12</output>

<gadget id="calculator">2 + 2 + 12</gadget>
<output>16</output>

<gadget id="calculator">6 - 4</gadget>
<output>2</output>

<gadget id="calculator">16 / 2</gadget>
<output>8</output>

<gadget id="calculator">8 * 4</gadget>
<output>32</output>

<gadget id="calculator">8 + 32 + 2</gadget>
<output>42</output>

<result>42</result>