The students planted trees along one side of the path (both ends were planted), one tree every 8 meters, and a total of 40 trees were planted. How many meters is this path?
同学们沿小路一侧植树(两端都种)，每隔8米种一棵，一共种了40棵．这条小路有多少米？
<gadget id="calculator">40 - 1</gadget>
<output>39</output>

<gadget id="calculator">39 * 8</gadget>
<output>312</output>

<result>312</result>