دَخَلَ الطَّالِبُ وَهُوَ مُسْرُورٌ.
The student entered while happy.
Al-ṭālibu is the subject and bearer of the ḥāl. In the following nominal clause, huwa is the subject referring to that student and masrūrun is its predicate. The whole clause introduced by wāw serves as a circumstance.
Wāw makes the relation between clauses explicit; the pronoun identifies the person described. Together they strengthen the same circumstantial link.