A project alone takes 30 days, and B alone takes 10 days less than A. Now they are working together, but B takes a few days off. As a result, it takes 18 days from start to finish. How many days did B rest?
一项工程，甲单独做要30天，乙单独做的时间比甲少10天，现在两人合作，但其中乙休息了几天，结果从开工到结束一共用了18天．乙休息了几天？
<gadget id="calculator">1 / 30</gadget>
<output>1/30 = around 0.033333</output>

<gadget id="calculator">(1/30) * 18</gadget>
<output>3/5 = around 0.6</output>

<gadget id="calculator">1 - (3/5)</gadget>
<output>2/5 = around 0.4</output>

<gadget id="calculator">30 - 10</gadget>
<output>20</output>

<gadget id="calculator">1 / 20</gadget>
<output>1/20 = around 0.05</output>

<gadget id="calculator">(2/5) / (1/20)</gadget>
<output>8</output>

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

<result>10</result>