There are three machines in the company that have different degrees of failure. It is known that the repair time of the first machine takes 8 minutes, the repair time of the second machine takes 30 minutes, and the repair time of the third machine takes 15 minutes. Each machine stops production for 1 minute and causes economic losses. 500 yuan, and there is only one repairman, so how can the repair time be the shortest and the economic loss be the least?
公司里有三台机器出现了不同程度的故障，已知第一台修复时间需要8分钟，第二台修复时间需要30分钟，第三台需要修复时间15分钟，每台机器停产1分钟造成经济损失500元，现只有一名修理工，那么怎样安排才能使修复时间最短，且经济损失最少？
<gadget id="calculator">8 * 3</gadget>
<output>24</output>

<gadget id="calculator">15 * 2</gadget>
<output>30</output>

<gadget id="calculator">24 + 30 + 30</gadget>
<output>84</output>

<gadget id="calculator">84 * 500</gadget>
<output>42_000</output>

<result>42_000</result>