How does the sentence end?

Donald was showing Logan how to do difficult puzzles but
Logan was struggling to learn how.