Xiao Ming, Xiao Gang and Xiao Hong all come to the teacher to correct their homework. Xiao Ming makes fewer mistakes and only takes 1 minute; Xiao Hong makes more mistakes and takes 3 minutes; Xiao Gang makes the most mistakes and takes 8 minutes. How to arrange the order of correcting the three-person homework so that the time spent on correcting the homework is the least? what time is it
小明、小刚和小红3个人都来找老师批改作业，小明错的比较少，只需要1分钟；小红错的多一些，需要3分钟；小刚错的最多，需要8分钟．怎样安排批改三人作业的顺序，才能在批改作业使用时间最少？时间是多少？
<gadget id="calculator">1 * 3</gadget>
<output>3</output>

<gadget id="calculator">3 * 2</gadget>
<output>6</output>

<gadget id="calculator">3 + 6 + 8</gadget>
<output>17</output>

<result>17</result>