Teaching area measurement and subgoals through problem solving