A certain outpatient department counted the number of registered patients on a certain day. There were 150 internal medicine patients and 92 surgical patients. Among them, 18 patients were both in internal medicine and external surgery. How many patients came in that day?
某门诊部统计某一天挂号的病人，内科150人，外科92人，其中内、外两科都求诊的18人，这一天共来了多少个病人．
<gadget id="calculator">92 - 18</gadget>
<output>74</output>

<gadget id="calculator">150 + 74</gadget>
<output>224</output>

<result>224</result>