Paloma learned to listen to the sounds her dog made so that she would know what her dog wanted.

What is the infinitive in the sentence above?
what her dog
to listen
to the sounds
know what