There are 89 people in the fourth grade participating in voluntary labor, and 47 people in the sixth grade are three times more than those in the fourth grade. How many people in the two grades participated?
四年级有89人参加义务劳动，六年级参加的人数比四年级的3倍还多47人，两个年级一共有多少人参加？
<gadget id="calculator">89 * 3</gadget>
<output>267</output>

<gadget id="calculator">267 + 47 + 89</gadget>
<output>403</output>

<result>403</result>