The answer is the first choice. Both verb tenses are in the past tense and agree with each other.
What is this mean I don’t understand the question
Answer:
I think that the second option is better.
Explanation:
By using the second option, you are showing that you are directly quoting from the book itself, but the first option sounds like you are creating this dialogue yourself, which is wrong.
Hope this helps!