Honestly, there's no "secret formula" to any of this. In fact, it's some weird combo of academics, qualitative factors, academic rigor/course load (math, science, English, foreign language are incredibly important), essays and personal statements, nominations, self-motivation, physical fitness...