An investigation into the mathematical ability of pupils of classes IX and X in context of some cognitive and affective variables