can someone help me factor these expressions... 40xy and 36m^2g^2

The coefficients are 40 and 36.

Can you identify a factor between these two numbers?
The variables for 40xy are x and y.
Those for 36m²g² are m and g.
Since there are no variables in common, the only factor is the one between the two coefficients, namely 4.