The study of psychological variables on Teachers and students