What is bid and offer price in stock market

How do bid and offer prices affect trade execution in the market?