Fill in the appropriate form of the verb.
Bella ______ (study) Spanish for three years before taking the exam.
had been studying
had studied
studied
was studying