Answer: Classical conditioning
Explanation: Classical conditioning is the method through which the biologically influential stimulus can be connected with the neutral or stable stimuli .This is a type of learning mechanism which is also called as respondent conditioning.
The situation mentioned in the question is also of classical conditioning because influential stimulus in the form of snacks is included while solving of math problems so that a new positive response can be obtained .