Use the concentration to obtain the moles. I am assuming you mean to write capital M. because little m means molality.
So, first convert the ml into Liters and then into moles, then moles to grams using the molar mass (just adding the values of each atom from the periodic table. )