There is a salesperson selling goods in a small grocery store, and five customers A, B, C, D, and E come at the same time. A needs 2 minutes to buy candy; B needs 6 minutes to buy rice; C needs 4 minutes to buy cigarettes and beer; D needs 3 minutes to buy fruit; E needs 5 minutes to buy vegetables. I would like to ask: How should the salesperson arrange the order of the five people so that the sum of the five people's waiting time in line is the shortest? What is the shortest time for this? (Only count the time that everyone queues up, not the time to buy things.)
小杂货店里有一位售货员卖货，同时来了A、B、C、D、E五个顾客．A买糖果需要2分钟；B买大米需要6分钟；C买香烟和啤酒需要4分钟；D买水果需要3分钟；E买蔬菜需要5分钟．请问：售货员应该如何安排五个人的顺序，使得这五个人排队等候的时间总和最短？这个最短的时间是多少？(只计算每个人排队的时间，不计算买东西的时间．)
<gadget id="calculator">2 * 4</gadget>
<output>8</output>

<gadget id="calculator">3 * 3</gadget>
<output>9</output>

<gadget id="calculator">4 * 2</gadget>
<output>8</output>

<gadget id="calculator">5 * 1</gadget>
<output>5</output>

<gadget id="calculator">8 + 9 + 8 + 5</gadget>
<output>30</output>

<result>30</result>