You specify a $0.5*mol*L^-1$ solution of $MgSO_4(aq)$.
Since $"Concentration"$ $=$ $"Moles of solute"/"Volume of solution"$,
$"Moles of solute"="Concentration"xx"Volume of solution"$.
If we have a $1000*mL$ volume, then.......
$"Moles of solute"$
$0.5*mol*cancel(L^-1)xx1000*cancel(mL)xx10^-3cancel(L)*cancel(mL^-1)=0.5*mol " with respect to " Mg^(2+)(aq)$.