Q: I heard that Sasha wanted to do well in my class, so Sasha did their best to learn my lesson. And I was wondering What does Sasha need to do before this?

Pick from: + have a desire to do well. + wanted a good grade. + have a desire to do nothing.
The answer is:
have a desire to do well