The average scores of Zhang Hua's math, Chinese, foreign language, physics, and chemistry are 88 points, of which the average score of math, Chinese, and foreign language is 90 points, and the average score of foreign language, physics, and chemistry is 87 points. How many points did he score in the foreign language test?
张华的数学、语文、外语、物理、化学的平均分为88分，其中数学、语文、外语的平均分90分，外语、物理、化学的平均分是87分．他外语考了多少分？
<gadget id="calculator">90 * 3</gadget>
<output>270</output>

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

<gadget id="calculator">88 * 5</gadget>
<output>440</output>

<gadget id="calculator">261 - 440</gadget>
<output>-179</output>

<gadget id="calculator">270 + (-179)</gadget>
<output>91</output>

<result>91</result>