Well, I taught maths for 15 years but I've not got a clue what 'pairs' are (in the context of your post) and even Google doesn't appear to have heard of 'impairs'! (Do you mean odd and even numbers, or something different?)
Further, you write about 'the sum of the number' (singular). You can't have a sum of one thing on it's own!
Then you refer to the '6 highest numbers'. Given that you only want 6 numbers anyway, that doesn't make sense either!
If you post a question using the English language (and mathematical terminology) accurately, you might get a sensible answer. Until then, nobody can help you.
Chris