3 teachers lead several students to visit the zoo. The ticket for adults is 18 yuan, half price for children. All the tickets cost 414 yuan. How many students are there?
3名老师带领若干名同学去游动物园，成人票18元，儿童半价，所有入门票共花414元，请问有多少名同学？
<gadget id="calculator">18 * 3</gadget>
<output>54</output>

<gadget id="calculator">414 - 54</gadget>
<output>360</output>

<gadget id="calculator">18 / 2</gadget>
<output>9</output>

<gadget id="calculator">360 / 9</gadget>
<output>40</output>

<result>40</result>