This is a unit conversion question. They give you molarity of the solution and a mass of the salt and ask for volume of solution. From the periodic table you can get molar mass. So this is a gram-to-mole-to-volume of solution conversion.
0.5 mg MgCl2 x 1 mole MgCl2/95 g MgCl2 x 1 L sol'n/0.01 moles MgCl2 = volume needed
Simplifying the math by rounding 95 to 100, we get 0.5 mg x 1/100 mole/g x 1/0.01 L/mole = 0.5 x .01 x 100 = 0.5 mL = 500 µL.
Set up the unit conversion and it becomes clearer.