The Guangming Experimental School held a mathematics competition, which was divided into two times. The number of people who passed the first test was 4 times more than the number of people who failed, and the number of people who passed the second test increased by 22, which was exactly 6 times the number of people who failed. How many people participated in the math competition?
光明实验学校举行数学竞赛，分两次进行，第一试及格的比不及格的人数的4倍多2人，第二试及格的人数增加了22人，正好是不及格人数的6倍，则参加数学竞赛的共有多少人．
<gadget id="calculator">7 * 22</gadget>
<output>154</output>

<gadget id="calculator">2 + 154</gadget>
<output>156</output>

<gadget id="calculator">7 - 5</gadget>
<output>2</output>

<gadget id="calculator">156 / 2</gadget>
<output>78</output>

<gadget id="calculator">78 * 5</gadget>
<output>390</output>

<gadget id="calculator">390 + 2</gadget>
<output>392</output>

<result>392</result>