The main contrast in yuʿallimu/yuʿallamu is the doubled lām vowel.

The Passive Verb: Past, Imperfect, and Proxy Subject