According to Strunk, the correct way to place an adverbial clause in this sentence is: ""The dog kept barking at Megumi while she walked to school." Option C is correct.
An adverb clause consists of a group of words that work as an adverb in a sentence. Adverb clauses may be employed to add explanatory detail to your writing and explain how or why things happen. In general, adverbs answer questions like, how, why, where and when.