Cognition-emotion interactions: patterns of change and implications for math problem solving