Xiaofang scored 82 points in Chinese in the mid-term exam, and mathematics scored 5 points more than Chinese, so how many points in foreign language can the average score of the three subjects reach 89 points.
小芳期中考试语文的82分，数学比语文多得5分，那么外语多少分，三科平均分才能达到89分．
<gadget id="calculator">89 * 3</gadget>
<output>267</output>

<gadget id="calculator">82 + 5</gadget>
<output>87</output>

<gadget id="calculator">267 - 82 - 87</gadget>
<output>98</output>

<result>98</result>