I've encountered this quiz: translate this sentence: "Marie worked for ten hours yesterday". The answer excludes this option: Marie a travaillé en dix heures hier.
Why can't I use the word "en"? It's mentioned here: En vs Dans with time (French Prepositions of Time)
"En expresses the length of time something takes to be done."