A wheel of radius R and negligible mass is mounted on a horizontal frictionless axle so that the wheel is in a vertical plane. Three small objects having masses m, M, and 2M, respectively, are mounted on the rim of the wheel, as shown above. If the system is in static equilibrium, what is the value of m in terms of M ?