When two subjects are joined by ‘as well as’ then the verb agrees to the subject that comes first. Here, the subject ‘teacher’ and ‘his wife’ are joined by ‘as well as’; ‘teacher’ will govern the use of the verb. So, a singular verb will be used. So, ‘was invited’ will be used to make the sentence correct. Hence, (a) is the correct option.