The correct answer is D. dentista.
This is because the sentence that Beatriz says refers to having pain (dolor) in her teeth (dientes). Then, Luisa advises her to go to the dentist (dentista).
This is the option that makes the most sense because you go to the dentist when your teeth hurt. The other types of doctors don’t make sense for this situation, so the answer is D.
Hope this helps!
Answer:
Since you need to form a question, but place the subject at the end, it means that the entire question will be really inverted, meaning that the order of words will be a little jumbled. This is the way to do it:
Termina a las dos la clase?
As you can see, the subject 'la clase' is placed at the end, and the word order is inverted.