The correct option is B nearer to M
Distance of the centre of mass from mass m1 considering m1 to be placed at origin is .
XCM=m2m1+m2L
Hence, its distance from mass m2.
X′CM=1−XCM=m1m1+m2L
Hence, XCMX′CM=m2m1
Suppose, m1=M,m2=m
then XCM<X′CM
i.e., Distance of COM wrt mass M < Distance of COM wrt mass m
i.e., COM lies nearer to M.
Hence, the correct answer is option (b).