Possibly metaphysical naturalism is wrong and supernatural things exist! And maybe thoughts (and/or the experience of consciousness) are among those supernatural things. That could be it. In which case sure, maybe solving math problems can create consciousness (why not?).
You are attacking a strawman without answering the question.