The stock market is a system that allows individuals and institutions to buy and sell ownership in publicly…