The ratio of the number of students in the upper grades to the middle grades in Lakeside Primary School is 7:4. The number of students in the middle grades plus 54 is the same as the number of students in the lower grades. The number of students in the upper grades is 270 more than that of the lower grades. This elementary school has a total of students how many people.
湖滨小学高年级与中年级学生人数的比是7：4，中年级学生人数的再加上54人就与低年级学生人数同样多，高年级学生人数比低年级多270人，这个小学共有学生多少人．
<gadget id="calculator">54 + 270</gadget>
<output>324</output>

<gadget id="calculator">7 - 4</gadget>
<output>3</output>

<gadget id="calculator">324 / 3</gadget>
<output>108</output>

<gadget id="calculator">108 * 7</gadget>
<output>756</output>

<gadget id="calculator">108 * 4</gadget>
<output>432</output>

<gadget id="calculator">756 + 432 + 432 + 54</gadget>
<output>1_674</output>

<result>1_674</result>