The school shipped 125 peaches and several pears, which were distributed equally to each teacher. In the end, some pears and peaches were not enough for the division. At this time, another 26 fruits (several peaches and pears) were brought in, which were combined with the remaining fruits. Together, they will be distributed equally to the teachers, and each teacher will get 3 more fruits (each teacher has the same number of peaches and the same number of pears). In the end, 40 more fruits (some peaches and pears) were brought in, but it was found that there were not enough peaches and pears left. Each teacher took one more at the same time, so how many pears were left after the first division?
学校运来125个桃和若干个梨，分别平分给每位老师，最后剩下一些梨和桃不够分，这时又运来了26个水果(桃梨若干)，和之前剩下的水果凑在一起，再平分给老师，每个老师多分得3个水果(每位老师的桃数相同，梨数相同)．最后又运来40个水果(桃梨若干)，但是发现所剩的桃和梨竞不够每位老师同时多拿一个，那么第一次分后剩下了多少个梨？
<gadget id="calculator">42 - 25</gadget>
<output>17</output>

<result>17</result>