These are the differences:
Compound - when the action is done, and only shows the result
Imperfect - the action is still done, but describes in more detail about the process, focuses deeply on the duration
hope this helps !!
Which pair of verbs best completes this sentence?
Elle rentrait du travail à deux heures l'après-midi, mangeait rapidement, et allait à l'école pour étudier.