title: Ptolemaic dynasty
context: The Ptolemaic dynasty (/ˌtɒlɪˈmeɪɪk/; Ancient Greek: Πτολεμαῖοι, Ptolemaioi), sometimes also known as the Lagids (/ˈlædʒɪdz/) or Lagidae (/ˈlædʒɪdi/; Λαγίδαι, Lagidai, after Lagus, Ptolemy I's father), was a Macedonian Greek[1][2][3][4][5] royal family, which ruled the Ptolemaic Kingdom in Egypt during the Hellenistic period. Their rule lasted for 275 years, from 305 to 30 BC.[6] They were the last dynasty of ancient Egypt.
question: How long did the Ptolemaic dynasty last?
answers: 275 years