How does a egg float on salty water?

the salt makes the water more dense so the egg is less dense than the water making it float.