There are some toffees, less than 40 yuan. If you divide these toffees between 5 children or 7 children on average, there are still 2 yuan left. How many pieces of these toffees are there in total?
有一些奶糖，不到40块，把这些奶糖平均分给5个小朋友或者平均分给7个小朋友，都还剩下2块，这些奶糖一共有多少块？
<gadget id="calculator">7 * 5</gadget>
<output>35</output>

<gadget id="calculator">35 + 2</gadget>
<output>37</output>

<result>37</result>