For least ambiguity, you generally put the adverb before the verb it qualifies (though other positions may be possible, and, in cases of no ambiguity, even preferable). " -- finally qualifies "understood". In other words, they didn't understand at first, but eventually they did understand.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.