A worker planted trees. He planted 20 trees a day on sunny days and 12 trees on rainy days. He planted 112 trees in total for several consecutive days, with an average of 14 trees a day. How many days were there in rainy days?
一个工人植树，晴天每天植树20棵，雨天每天植树12棵，他连续几天共植树112棵，平均每天植树14棵，这几天中共有几天是雨天？
<gadget id="calculator">112 / 14</gadget>
<output>8</output>

<gadget id="calculator">112 - 96</gadget>
<output>16</output>

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

<gadget id="calculator">16 / 8</gadget>
<output>2</output>

<gadget id="calculator">8 - 2</gadget>
<output>6</output>

<result>6</result>