The 40 students of the colorful flag team stand in a row, each occupying 0.4 meters, and the distance between each two is 0.5 meters. What is the total length of this row?
彩旗队的40名同学站成一排，每人占取0.4米，每两人之间相距0.5米，这排队伍共长多少米．
<gadget id="calculator">40 - 1</gadget>
<output>39</output>

<gadget id="calculator">39 * 0.5</gadget>
<output>19.5</output>

<gadget id="calculator">40 * 0.4</gadget>
<output>16</output>

<gadget id="calculator">19.5 + 16</gadget>
<output>35.5</output>

<result>35.5</result>