Set subjects to teachers