Here is the sentence:
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 Mr. Nguyen.
To fix the problem, you should organize the sentence like this: With an ear-to-ear grin, Mr. Nguyen returned the perfect calculus test, which delighted Emma Sue.