Bali Pairs Problem

I am not able to understand the hint can you please elaborate.

Hey what didn’t you understand in the hint its basicaly counting no. of odd and no. od even. And using permutations and combinations to find no. of odd pairs.

And also can you send me the question link.