A rod of length of 1 m is attached to the string at its mid point. A 6 kg mass is attached to end of the rod and another mass M is hung at a distance of 30 cm from the center of the rod as shown in the figure. Assume mass of rod is negligible. Find out the value of M.