u need 6 math modules 2 in each level.....anyway will have some overlap like CS1231S or the calculus which can count into both your major requirement and math minor.
math module MC can fully contribute to your MC
u can think it as this way:
fulfill your graduation requirement of your major and take 6 math modules (can counted as GEM or CFM or anything else)
then u need to take 3 more CFMs (12 MCs) in order to fulfill your minor requirement.
i dunt know if the policy changes with your batch or not. so for your reference