Kindergarten distributes fruit, if all the apples are given to the children in the small class, each person will be given exactly 7 pieces, if all the pears are given to the children in the big class, each person will be given exactly 5 pieces, now distribute these fruits equally to the children in the two classes , each person gets 4 apples and 2 pears, and the apples are just finished, leaving 4 pears. May I ask: How many children are there in the two classes?
幼儿园分水果，如果把苹果都分给小班的小朋友，每人恰好分7个，如果把梨都分给大班的小朋友，每人恰好分5个，现在把这些水果平均分给两个班的小朋友，每人分得4个苹果和2个梨，并且苹果恰好分完，梨还剩4个．请问：两个班共有多少个小朋友？
<gadget id="calculator">12 + 16</gadget>
<output>28</output>

<result>28</result>