A sample of drinking water from a local source was analyzed for its composition using mass balance calculations. The sample was found to contain 100 mg/L of calcium ions, 50 mg/L of magnesium ions, 20 mg/L of chloride ions, and 10 mg/L of sulfate ions. If the total volume of the sample was measured to be 50 mL, what is the mass of each ion present in the sample?