Answer:
Crossovers during meiosis happen at more or less random positions along the chromosome, so the frequency of crossovers between two genes depends on the distance between them.
The closer two genes were to one another on a chromosome, the greater their chance of being inherited together. In contrast, genes located farther away from one another on the same chromosome were more likely to be separated during recombination.