problem solving inductive and deductive reasoning