Before the exam she already had a clear picture in her mind and was fully confident.
Tips
memory
心里 (in the heart/mind) + 有数 (have a count / have numbers) — imagine having all the numbers tallied up in your head already. You know exactly how things stand.