First, convert 8.01 km^3 to L
(1) 1 km^3 = (10^3 m)^3 = 10^9 m^3
1 m^3 = 10^3 L
10^9 m^3 = (10^9 m^3)*(10^3 L/m^3) = 10^12 L
So 8.01 km^3 = 8.01 x 10^12 L
(2) calculate the mass of that volume of seawater (1.04 g/mL = 1.04 kg/L)
(8.01 x 10^12 L)*( 1.04 kg/L) = 8.3304 x 10^12 kg
(3) calculate the Mg in that mass of water
(8.3304 x 10^12 kg)*(0.0012) = 9.99648 x 10^10 kg of Mg