The ticket price for the amusement park is: 35 yuan per person for 1 to 40 people; 27 yuan per person for more than 40 people. There are 38 students in Class 1 and 39 in Class 2. The two classes go to the amusement park together. How much can the two classes save by buying tickets together instead of buying tickets separately?
游乐场的门票价格为：1～40人，每人35元；40人以上，每人27元．四1班有38人，四2班有39人，两班同学一起去游乐场游玩，两班同学合起来买门票比分开买门票节省多少元？
<gadget id="calculator">35 - 27</gadget>
<output>8</output>

<gadget id="calculator">38 + 39</gadget>
<output>77</output>

<gadget id="calculator">8 * 77</gadget>
<output>616</output>

<result>616</result>