Funding doesn't seem to do much to make a school desirable. By far and away the biggest factor that determines how good a school is is the socioeconomic status of the parents. A school doesn't need more money to be better at educating, it just needs better students. If they happen to form a critical mass at a low-funded school, then that'll become an elite school.