Joe was very good at thinking.  As he grew, he learned out to apply his thoughts to most situations.  This led to him doing what?
solving problem solution to problem wonder
solving problem
wonder doesn't make sense. this led him to solution to problem doesn't make sense grammaticall yso the first is correct
learned out to apply his thoughts to most situations