Example 5. The school brigade organizes students to do good deeds for military martyrs and poor households. There are 165 boys and 83 girls. Every 8 people form an activity group. How many groups can be formed?
例5、学校大队部组织同学们为军烈属和困难户做好事，男生有165人，女生有83人，每8人编成一个活动小组，可以编成多少个小组？
<gadget id="calculator">165 + 83</gadget>
<output>248</output>

<gadget id="calculator">248 / 8</gadget>
<output>31</output>

<result>31</result>