There are 23 pairs of chromosomes in a human body. Two of them are called sex chromosomes. The female body contains 2 x chromosomes, and the male body contains 1 x and 1 y chromosomes.
The female egg contains 1 x chromosome. When the sperm containing x chromosome fertilizes with the egg, the baby will be female. If the sperm containing y chromosome fertilizes with the egg, then the baby will be male.
This is how sex determination in humans can be represented.