Here is the sentence:
Emma Sue was delighted when Professor Nguyen returned her perfect calculus test with an ear-to-ear grin.

Very impressive! You recognized that too many words separate the modifier from its target. With an ear-to-ear grin, a prepositional phrase, is describing test when its target should be Professor Nguyen.

To fix the problem, you could organize the sentence like this: With an ear-to-ear grin, Professor Nguyen returned the perfect calculus test, which delighted Emma Sue.

Go to the next sentence.