concept on mole fraction and molarity
The ratio of the number of moles of that component present in the solution to the total number of moles of all the solution components is known as the mole fraction of any component of a solution.
Molarity (M) is the amount of a substance in a certain volume of solution. Molarity is defined as the moles of a solute per liters of a solution. Molarity is also known as the molar concentration of a solution.
I hope my answer helps. All the very best for your future endeavors!