It is formulated from the genetic formula of the character profession in Universe Town.
Mayor + mechanic = engineer, mayor + mayor = police chief, mayor + engineer = architect, assistant + architect = landscaper, assistant + police chief = police officer, police officer + Landscaper = Gardener, Mechanic + Engineer = Mechanical Engineer etc.