The Rules of Composing Expert Math Problems