A girl wearing a scarf is brushing a horse.
A girl is brushing a horse.
It is clear from these sentences that the girl is brushing a horse.
Answer: The girl is wearing a scarf.
A girl brushing a horse is part of her description wearing a scarf.