The stock market allows anyone to buy and sell part ownership in a publicly traded…