Students’ mathematical reasoning in textbook exercise solving