In a species of plant, flower colour is determined by a single gene with two codominant alleles. The allele C^R produces red flowers, and the allele C^W produces white flowers. Plants with genotype C^R C^W have pink flowers. A breeder crosses two pink-flowered plants and obtains 100 offspring. The observed numbers are: red flowers = 22, pink flowers = 51, white flowers = 27.
The expected phenotypic ratio for this cross is 1 red : 2 pink : 1 white.
Explain how the breeder could use a chi-squared test to determine whether the observed results fit the expected ratio.