To What Extent Is the Acquisition of New Mathematical Knowledge Based on the Need to Solve Problems?