How is the sex of a person determined?
As the egg already holds an X chromosome, the sex of a person is determined by the next chromosome that it will receive from the sperm:
If the egg receives another X chromosome from the sperm, the resulting individual is XX, meaning that ovaries are formed therefore the individual will be a female.
If the egg receives another Y chromosome from the sperm, the resulting individual is XY, meaning that testes are formed therefore the individual will be a male.