Assume \(100\,\text{g}\) of solution \(\Rightarrow\) \(6\,\text{g}\) urea and \(94\,\text{g}\) water.
Moles of urea \(=\dfrac{6}{60}=0.10\ \text{mol}\).
Moles of water \(=\dfrac{94}{18}=5.222\ \text{mol}\).
Total moles \(=0.10+5.222=5.322\ \text{mol}\).
Mole fraction of urea \(x_{\text{urea}}=\dfrac{0.10}{5.322}=0.0188\).
Mole fraction of water \(x_{\text{water}}=\dfrac{5.222}{5.322}=0.9812\).
\[
\boxed{x_{\text{urea}}\approx 0.0188, x_{\text{water}}\approx 0.9812}
\]