Being polite and honest will Be your best bet to thanking a teacher for helping you out in a typical situation.
8.2m questions
10.9m answers