The school made small red flags and distributed 6 pieces of red paper and 15 pieces of yellow paper to each student. After distributing them to 18 students, there were 122 left. How many pieces of the two kinds of papers are there in total?
学校里制作小红旗每人发6张红纸，15张黄纸，发给18个同学后，还剩122张，两种纸一共有多少张？
<gadget id="calculator">6 + 15</gadget>
<output>21</output>

<gadget id="calculator">21 * 18</gadget>
<output>378</output>

<gadget id="calculator">378 + 122</gadget>
<output>500</output>

<result>500</result>