The Relationship between Cognitive Preferences of Students and Their Teachers