The battery ticket for a scenic spot is 8 yuan per person, and the group ticket for more than 40 people (including 40 people) is 4 yuan per person. The number of students in Class 4 1 and Class 4 2 is less than 40, and the number of students is equal, so the two Two classes together buy a group ticket, which costs 200 yuan less than buying tickets separately. How many people will each of the two classes take part in the tour?
某风景区的电瓶车票为每人8元，40人以上(含40人)的团体票为每人4元，四1班和四2班参加旅游的同学不足40人，且人数相等，于是两个班合起来购买团体票，这样比各自购票少用200元，两个班参加旅游的人数各是多少？
<gadget id="calculator">8 - 4</gadget>
<output>4</output>

<gadget id="calculator">200 / 4 / 2</gadget>
<output>25</output>

<result>25</result>