Tomorrow two teachers will take 51 students to the botanical garden. The botanical garden stipulates that adult tickets are 10 yuan each, student tickets are 8 yuan each, and group tickets (more than 50 people) are 9 yuan each. How do you think it is cost-effective to buy tickets? How much do you need in total?
明天两位老师带51名同学去植物园．植物园规定，成人票每张10元，学生票每张8元，团体票(50人以上)每张9元，你认为怎样买票合算？一共需要多少钱？
<gadget id="calculator">2 * 10</gadget>
<output>20</output>

<gadget id="calculator">51 * 8</gadget>
<output>408</output>

<gadget id="calculator">20 + 408</gadget>
<output>428</output>

<result>428</result>