solve math issue