The trick was that one glass had a salty solution and one was plain tap water. During our investigations we found out . . .
Salty water is heavier than plain water. The salt in the water can hold up an egg and make it float.
Fresh water makes the egg sink because it is lighter than the egg.
To make an object float (like an egg) you need to add three tablespoons of salt for every cup of water.
The ability of something like an egg to float in water or a similar liquid is known as buoyancy.