A certain elementary school held two mathematics competitions. The number of people who passed the first time was 4 times more than the number of people who failed, and the number of people who passed the second time increased by 5, which was exactly 6 times the number of people who failed. How many people participated in the competition? ?
某小学举行了两次数学竞赛，第一次及格人数比不及格人数的3倍多4人，第二次及格人数增加5人，正好是不及格人数的6倍，问参加竞赛的有多少人？
<gadget id="calculator">5 * 6</gadget>
<output>30</output>

<gadget id="calculator">4 + 5 + 30</gadget>
<output>39</output>

<gadget id="calculator">6 - 3</gadget>
<output>3</output>

<gadget id="calculator">39 / 3</gadget>
<output>13</output>

<gadget id="calculator">3 * 13</gadget>
<output>39</output>

<gadget id="calculator">13 + 39 + 4</gadget>
<output>56</output>

<result>56</result>