Problem Solving with Moments in 1 and 2 Dimensions