Answer:
2 is one of the grandparents of 12. Genes carry between generations so having dimples (which I will assume is the shaded square) has the same genes of 1 (the other grandparent) because you get genes from both parents and not just one.
Explanation: