What decides the opening price of a stock

How is the opening trading price for a stock determined each day?

The opening price is set by matching buy and sell orders collected before the market opens. The price where the most shares can be traded becomes the opening price.