Let the diameter of the earth be d.
Therefore, the radius of the earth will be will be d2.
Diameter of moon will be d4 and the radius of moon will be d8.
Volume of the moon =43πr3=43π(d8)3=1512×43πd3
Volume of the earth = 43πr3=43π(d2)3=18×43πd3
Volume of moonVolume of earth=1512×43πd318×43πd3
=164
⇒ Volume of the moon =164 Volume of earth