Step-by-step explanation:
Molarity is defined as the number of moles in liter of solution.
The formula for molarity is as follows.
Molarity =

Therefore, from the formula it can be seen that to calculate molarity of a solution we need to know the number of moles and volume of the solution.