You aren't able to listen to what someone is thinking.
One of the following sentences is nonsensical. Which one is it?
[A] "we listened carefully to what the teacher was thinking"
[B] "we listened carefully to what the teacher was saying"