Solving Complex Math Problems