Mwanafunzi - the pupil
Wa - of
Mwisho - last
The pupil of last doesn't make sense but you could think of wa as being a word that connects a descriptive word to a subject. So think of it as the pupil of last place, or the pupil (he/she is) last. I hope that explains it a bit.