A young girl in glasses observes something in the distance.
A person is looking at something from afar.
A person who is a young girl  and is wearing glasses, is looking at something in the distance.
A young girl is a person, therefore this can be used as a synonym. Also 'looking at something from afar' is a rephrasing of 'observes something in the distance'.
The girl and the person are synonymous and observes and looking are also synonyms. Therefore, the girl is observing or looking at something in the distance.