Answer:
Generally speaking, the preterite is used for actions in the past that are seen as completed, while the imperfect tense is used for past actions that did not have a definite beginning or a definite end.
Explanation:
For example: The sentence that you gave as an example is preterite, because it has a definite beginning and a definite end. (if that makes sense)
Hope that helped! :)