You only provided limited data to test with, but give this a try...
=IF(A2>30,30*10,IF(AND(A2<7,OR(B2="M",B2="E",B2="C")),A2*C2,A2*10))