What did Egypt and Nubia have in common?