Wenfeng Park ticket purchase regulations: 40 yuan per person for 1-40 people, 35 yuan per person for 41-100 people, 35 yuan per person for more than 100 people, 41 people in the first class of the fourth grade in Yancheng Elementary School, 42 people in the second class, 38 people in the third class How much does it cost to buy a ticket for four classes together?
文峰公园购票规定：1～40人每人40元41～100人每人35元100人以上每人30元，盐城小学四年级一班有41人二班有42人三班有38人四个班合起来买票需要多少元？
<gadget id="calculator">41 + 42 + 38</gadget>
<output>121</output>

<gadget id="calculator">30 * 121</gadget>
<output>3_630</output>

<result>3_630</result>