A project is completed in 24 days by teams A and B. Now, team A will do it for 5 days first, and then the two teams will work together for 3 days. At this time, the ratio of completed to unfinished is 1:3. Team A needs to do it alone. how many days?
一项工程，甲、乙两队合作24天完成，现由甲队先做5天，然后两队合做3天，这时完成的与未完成的比为1：3，甲队独做需多少天？
<gadget id="calculator">1 + 3</gadget>
<output>4</output>

<gadget id="calculator">1 / 4</gadget>
<output>1/4 = around 0.25</output>

<gadget id="calculator">1 / 24</gadget>
<output>1/24 = around 0.041667</output>

<gadget id="calculator">(1/24) * 3</gadget>
<output>1/8 = around 0.125</output>

<gadget id="calculator">(1/4) - (1/8)</gadget>
<output>1/8 = around 0.125</output>

<gadget id="calculator">(1/8) / 5</gadget>
<output>1/40 = around 0.025</output>

<gadget id="calculator">1 / (1/40)</gadget>
<output>40</output>

<result>40</result>