Solution:As it is morning, the sun will be in the east. The shadow will be on the west.
It is given that X and Y walk towards each other, and the shadow of Y falls in front of X, X is towards the west of Y and is facing Y. So, X is facing the east direction.