\(\rightarrow\) Ram walks 10 meters south** from his house.
\(\rightarrow\) He turns left (which means he is now facing east) and walks 23 meters.
\(\rightarrow\) He turns left again** (which means he is now facing north) and walks 40 meters.
\(\rightarrow\) He turns right** (which means he is now facing east) and walks **5 meters** to reach his school.
After walking 10 meters south, Ram is 10 meters south of his house.
After turning left and walking 23 meters east, he is now 23 meters east and still 10 meters south of his house.
After turning left and walking 40 meters north, he has moved northward, so he has gone 30 meters north** of his starting point (40 meters north - 10 meters south = 30 meters north).
Finally, after turning right and walking 5 meters east, he is now 28 meters east (23 meters + 5 meters) and **30 meters north of his house.
Hence, Ram's school is to the northeast of his house.