Translation:He likes apples, but he ate an orange.
It is the "Präteritum" in German. If you use this past, you need to use "ge-" at the beginning of most of the verbs.
Examples: Ich bin gelaufen Du hast gegessen Er hat gelesen Etc.
It might be a little confusting because it seems like you use the "ge-" twice in "gegessen", but the e (gegEssen) is already there so you need to add another one in front of it.