The interplay of affect and cognition in the mathematics grounding activity: Forming an affective teaching model