Who did Cleopatra inherit the position from?

Cleopatra inherited her throne from her father, Ptolemy XII.
Cleopatra inherited her throne from her father, Ptolemy XII.