m1m2/(m1+m2)l2
m1+m+2m1m2l2
(m1+m2)l2
√m1m2l2
The distance of center of mass from mass m1 is x1 = m2l/(m1+m2)
The distance of center of mass from mass m2 is x2 = m1l/(m1+m2)
Hence moment of inertia of masses about the center of mass = m1x2^2 + m2x1^2 = m1m2/(m1+m2)l^2