Solving division problems with regrouping