Three students, A, B, and C, line up to receive the water. A takes 3 minutes to receive the water, B takes 5 minutes to receive the water, and C takes 8 minutes to receive the water. To minimize the total waiting time of the three students, how should they be arranged? time?
甲、乙、丙三个同学排队接水，甲接水用3分钟，乙接水用5分钟，丙接水用8分钟，要使三个同学等候时间总和最少，要怎样安排，最少需要多少时间？
<gadget id="calculator">3 * 3</gadget>
<output>9</output>

<gadget id="calculator">5 * 2</gadget>
<output>10</output>

<gadget id="calculator">9 + 10 + 8</gadget>
<output>27</output>

<result>27</result>