According to Thorndike’s law of effect, what happens to beha…