Once stocks are on the market which best explains how their prices are set

Once stocks are on the market which best explains how their prices are set