A trucking company hires workers who are contracted to work for 5 consecutive days and has a daily wage of $100. The minimum number of workers needed for each day (starting from Monday) is 20, 22, 17, 20, 18, 22, 24. Determine the optimal hiring plan for the company.