Solve Complex Math Problems