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

<gadget id="calculator">20 * 8</gadget>
<output>160</output>

<gadget id="calculator">160 - 112</gadget>
<output>48</output>

<gadget id="calculator">20 - 12</gadget>
<output>8</output>

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

<result>6</result>