Seol mar théacs é seo: Unexpected links between Egyptian and Babylonian mathematics