The mother squirrel picked 18 pine nuts per day on sunny days and 10 per day on rainy days. She picked 288 pine nuts for several consecutive days, with an average of 12 per day. How many days did it rain?
松鼠妈妈采松子，晴天每天可采18个，雨天每天可采10个，它一连几天采了288个松子，平均每天采12个，问这几天当中有几天有雨？
<gadget id="calculator">288 / 12</gadget>
<output>24</output>

<gadget id="calculator">18 * 24</gadget>
<output>432</output>

<gadget id="calculator">432 - 288</gadget>
<output>144</output>

<gadget id="calculator">18 - 10</gadget>
<output>8</output>

<gadget id="calculator">144 / 8</gadget>
<output>18</output>

<result>18</result>