How did the Egyptians afford to build there builds?