The mayor of Shanghai, China - a city of over 20 million people - told me that even in such a large city, they had no problem recruiting teachers in whatever subject, but particularly math and science, because teaching is revered and the pay scales are comparable to professions like doctors.