Pātuhitia tēnei: Unexpected links between Egyptian and Babylonian mathematics