How do you think markets determine prices and quantity of production?

How do you think markets determine prices and quantity of production? Can markets fail on meeting people needs?

Your initial reply should be no less than 200 words.