How does it work

How does investing work?