Students plant trees, if there are 6 people who plant 5 trees each, and the rest plant 8 trees each, there will be one tree that no one will plant; if 5 people each plant 7 trees, the rest will each plant 4 trees , then just finished planting. Q: How many trees are there?
同学们植树，若有6人每人植5棵，其余的人每人植8棵，则还有一棵树没有人植；若有5人每人植7棵，其余的人每人植4棵，则刚好植完．问：有多少棵树？
<gadget id="calculator">5 * 7</gadget>
<output>35</output>

<gadget id="calculator">6 * 8</gadget>
<output>48</output>

<gadget id="calculator">6 * 5</gadget>
<output>30</output>

<gadget id="calculator">5 * 4</gadget>
<output>20</output>

<gadget id="calculator">35 - 30 - 1 - 20</gadget>
<output>-16</output>

<gadget id="calculator">48 + (-16)</gadget>
<output>32</output>

<gadget id="calculator">8 - 4</gadget>
<output>4</output>

<gadget id="calculator">32 / 4</gadget>
<output>8</output>

<gadget id="calculator">8 - 5</gadget>
<output>3</output>

<gadget id="calculator">3 * 4</gadget>
<output>12</output>

<gadget id="calculator">35 + 12</gadget>
<output>47</output>

<result>47</result>