Here's why:
* Adverbs modify verbs, adjectives, or other adverbs. In this case, "exhaustively" modifies the verb "worked," telling us *how* the cousin worked.
* Adverbs often end in "-ly" but not always. This sentence provides a good example of that.
Let me know if you have any other sentences you'd like to analyze!