Magnetism and superconductivity in RbxFe2−ySe2