How do listed companies make money and whose money do they make?

Listed companies issue stocks, and investors buy stocks to achieve financing. The money is paid by investors. Investors buy stocks because they want to be shareholders and enjoy the rights of shareholders-if the company operates well, shareholders can share the operating results of the company, get dividends, or the stock price rises, so that the investment can be compensated. Shareholders and institutions in the secondary market earn investors' money because of misjudgment. If the 3 yuan per share rises to 8 yuan when the company goes public, then the company makes money, which is reflected in the stock price and market value.