A project alone takes 30 days, and B alone takes 1/3 less time than A. Now the two are working together, B did not participate in the last few days, and it took 18 days to complete the task, how many days did B rest?
一项工程，甲独做要30天，乙独做的时间比甲少(1/3)．现在两人合作，最后几天乙没有参加，结果用了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">1 / 3</gadget>
<output>1/3 = around 0.333333</output>

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

<gadget id="calculator">30 * (2/3)</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>