Three teachers from Yucai Primary School took 40 students to visit the aquarium. Tickets for adults are 12 yuan each, and tickets for children are 9 yuan each. How much does it cost to buy tickets?
育才小学3名教师带40名学生去参观海洋馆，成人票每张12元，儿童票每张9元．买门票需要多少元钱？
<gadget id="calculator">3 * 12</gadget>
<output>36</output>

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

<gadget id="calculator">36 + 360</gadget>
<output>396</output>

<result>396</result>