optimal-sampling (An optimal synthetic data sampling strategy for MATH)