Dear student
Mole fraction of any component is the number of moles of that component by total number of moles of the solution. It is generally expressed as x1= n1/ (n1+n2)
where
x1= mole fraction of component 1
n1 = number of moles of component 1
n2 = number of moles of component 2
Regards