Masks for everyone in public is a necessary but not sufficient condition. Check out Taiwan's Covid-19 Response Plan published in JAMA for details:
https://jamanetwork.com/journals/jama/fullarticle/2762689?gu...
What is the cost of an automated mask making machine? < $100,000/set (based on Alibaba data). Each set can make ~100 pieces/min * 60 min * 17 hours > 100,000 / day.
To make a mask daily for everyone in the US would take 3,300 such machines * $0.1 million = $330 million.
Along with all other costs, total capital investment is likely less than a few billion dollars. Costs of capital, materials, operations, and distribution all together would be negligible relative to savings in healthcare, not to mention less misery all around.