The classmates encouraged each other before the matriculation examination
or
The classmates encouraged one another before the matriculation examination
TNX IN ADVANCE
במקור each other התייחס למקרה של הדדיות בין שניים ו- one another כאשר היה מדובר ביותר משניים. אולם היום אפשר להשתמש בכל אחד מהם לכל אחד מן המובנים. חג שמח!