Start both glasses as the egg goes in. When the 4 runs out, turn it over. When the 7 runs out, turn that over too. When the 4 runs out again, at 8 minutes, the 7 has one minute of sand in its bottom half, so turn it over and it empties at 9.