In a metal-deficient oxide sample, \(M_xY_2O_4\) (\(M\) and \(Y\) are metals), \(M\) is present in both \(+2\) and \(+3\) oxidation states and \(Y\) is in \(+3\) oxidation state. If the fraction of \(M^{2+}\) ions present in \(M\) is \(\frac{1}{3}\), the value of \(X\) is \_\_\_\_.