A farmer crossed a pea plant that was heterozygous for two genes, A and B (genotype AaBb), with a plant that was homozygous recessive for both genes (aabb). The offspring phenotypes and their numbers are shown in the table.
| Phenotype | Number |
|---|---|
| AB | 382 |
| Ab | 38 |
| aB | 42 |
| ab | 338 |
Describe how these data can be used to determine whether the two genes are linked or unlinked.