Xiaoming's average score in Chinese, foreign language, and general knowledge in the midterm exam is 82 points. After the mathematics results were announced, his average score increased by 4 points. How much did Xiaoming score in the midterm exam in mathematics?
小明期中考试语文、外语、常识的平均分是82分，数学成绩公布后，他的平均成绩提高了4分，小明期中考试数学得了多少分？
<gadget id="calculator">82 + 4</gadget>
<output>86</output>

<gadget id="calculator">86 * 4</gadget>
<output>344</output>

<gadget id="calculator">82 * 3</gadget>
<output>246</output>

<gadget id="calculator">344 - 246</gadget>
<output>98</output>

<result>98</result>