How does the Stock Exchange Work?

The stock exchange works by companies buying and selling stock in their companies. A stock broker handles all the transactions and makes money off each sale.