The world has the technology - either available or well advanced in the research pipeline - to feed on a sustainable basis a population of 10 billion people.
Quality is free. It's not a gift, but it's free. What costs money are the unquality things -- all the actions that involve not doing jobs right the first time.