A worker in a certain factory received a subsidy of 4 yuan for the day shift and an additional 6 yuan for the night shift. A worker worked 24 days and received a total subsidy of 144 yuan. How many days did he work the night shift?
某厂工人，白班补助4元，夜班另加6元，某工人工作24天，共得补助费144元，问他上了几天夜班？
<gadget id="calculator">24 * 4</gadget>
<output>96</output>

<gadget id="calculator">144 - 96</gadget>
<output>48</output>

<gadget id="calculator">48 / 6</gadget>
<output>8</output>

<result>8</result>