Two teachers from a certain school took several students to travel and contacted two travel companies with the same price. After negotiation, Company A offered a 20% discount to all teachers and students; Company B offered a discount of 2 teachers are charged in full, and students are charged at a 25% discount. After calculation, the school found that the preferential price of Company A was higher than that of Company B (1/31). Ask: How many teachers and students are there to participate in the tour?
某校两名教师带着若干名学生去旅游，联系了两家标价相同的旅游公司，经过洽谈，甲公司给出的优惠条件是全部师生打八折收费；乙公司给出的优惠条件是2名教师全额收费，学生按七五折收费．该校经过核算，发现甲公司的优惠价比乙公司要(1/31)，问：参加旅游的师生共有多少人？
<gadget id="calculator">15.5 + 0.5</gadget>
<output>16</output>

<gadget id="calculator">1.15 - 0.75</gadget>
<output>0.4</output>

<gadget id="calculator">16 / 0.4</gadget>
<output>40</output>

<result>40</result>