Answer by
pious57 (112)
When there are two past actions, the action that was completed first takes past perfect tense and the action that was completed after that takes simple past tense. Eg:
When I reached the station, the train had already left. When the father came from the office, the child had slept.