Motivation to learn and problem solving