Let's say Company X, a tech startup, goes public with an IPO. They offer 10 million shares at $20 each. Investors buy these shares, hoping the company will grow, and eventually, the shares may trade at a higher price, say $30. If an investor bought 100 shares at $20 each and sells them at $30 each, they'd make a profit of $1,000.