How does the sentence end?

Joseph helped to cure Kevin's disease, so 
Choose from:
(A). Joseph was thanked for being a good doctor.;
(B). Kevin was thanked for being a good doctor.;
(A).