There are 40 students in a class. Two students missed the mid-term math exam for some reason. At this time, the average score of the class is 87, and the students who missed the exam each got 97 points in the make-up exam. What is the average score of this class in the mid-term math exam?
某班有40名学生，期中数学考试，有两名同学因故缺考，这时班级平均分为87分，缺考的同学补考各得97分，这人班级期中数学考试平均分是多少？
<gadget id="calculator">40 - 2</gadget>
<output>38</output>

<gadget id="calculator">87 * 38</gadget>
<output>3_306</output>

<gadget id="calculator">97 * 2</gadget>
<output>194</output>

<gadget id="calculator">3_306 + 194</gadget>
<output>3_500</output>

<gadget id="calculator">3_500 / 40</gadget>
<output>175/2 = around 87.5</output>

<result>175/2 = around 87.5</result>