What is bid price and ask price in stock

How does the bid-ask spread affect trade execution in stock markets?