The synergistic effect of affective factors on student learning outcomes