Answer:
I’d say that it’s the fourth one because all the other don’t make much sense.
Explanation:
If his dream happened in the middle of a boring math class it’s because he was centered in other things not paying attention to his class. He said that he doesn’t like math class since it’s never been if his interest, when you don’t like something you’d rather be doing something else, right? I hope I helped :)