Ticket regulations for Zhiyong Playground: Adult tickets are 20 yuan each, student tickets are 12 yuan each, and group tickets for 10 or more people are 15 yuan each. All the students in our class go to the playground with 5 teachers. How much is the minimum cost for buying tickets?
智勇游乐场门票规定：成人票每张20元，学生票每张12元，10人及10人以上的团体票每张15元．我们班的全体同学与5名教师一起去游乐场，买门票最少要花多少钱？
<gadget id="calculator">40 - 5</gadget>
<output>35</output>

<gadget id="calculator">35 * 12</gadget>
<output>420</output>

<gadget id="calculator">5 + 5</gadget>
<output>10</output>

<gadget id="calculator">10 * 15</gadget>
<output>150</output>

<gadget id="calculator">420 + 150</gadget>
<output>570</output>

<result>570</result>