When Nick walked past the office,he stopped walking and talked to the teacher.(改为同义句)

问题描述:

When Nick walked past the office,he stopped walking and talked to the teacher.(改为同义句)
When Nick ____ the office,he____ ____ ____to the teacher.

passed,stopped to talk