4(m7-6+7)xyg)=

your parentheses do not balance.

is m7 m*7 or m^7 ?

if all you want is to expand it, use the distributive property.