Students train in queues. If there are 8 people in each row, there will be 6 people in the last row; if there are 10 people in each row, there will be 4 fewer people in the last row. What is the minimum number of students participating in the queue training?
同学们进行队列训练，如果每排8人，最后一排6人；如果每排10人，最后一排少4人．参加队列训练的学生最少有多少人．
<gadget id="calculator">40 + 6</gadget>
<output>46</output>

<result>46</result>