Received X chromosome from mother
Receives X or Y chromosomes from father.
So, if you receive an X chromosome from your father, it becomes an XX chromosome and becomes a daughter.
If the father receives the Y chromosome, it becomes the XY chromosome and a son is born hehe
It's very basic, but it's simple, and it's the history of mankind!